No need for 4.0 features
This commit is contained in:
parent
989812ce38
commit
208851ae17
|
@ -170,8 +170,8 @@ namespace SparkleShare {
|
||||||
full_name = full_name.Trim ();
|
full_name = full_name.Trim ();
|
||||||
email = email.Trim ();
|
email = email.Trim ();
|
||||||
|
|
||||||
bool fields_valid = (!string.IsNullOrWhiteSpace (full_name) &&
|
bool fields_valid = full_name != null && full_name.Trim().Length > 0 &&
|
||||||
IsValidEmail (email));
|
IsValidEmail (email);
|
||||||
|
|
||||||
if (UpdateSetupContinueButtonEvent != null)
|
if (UpdateSetupContinueButtonEvent != null)
|
||||||
UpdateSetupContinueButtonEvent (fields_valid);
|
UpdateSetupContinueButtonEvent (fields_valid);
|
||||||
|
@ -226,8 +226,8 @@ namespace SparkleShare {
|
||||||
address = address.Trim ();
|
address = address.Trim ();
|
||||||
remote_path = remote_path.Trim ();
|
remote_path = remote_path.Trim ();
|
||||||
|
|
||||||
bool fields_valid = (!string.IsNullOrWhiteSpace (address) &&
|
bool fields_valid = address != null && address.Trim().Length > 0 &&
|
||||||
!string.IsNullOrWhiteSpace (remote_path));
|
remote_path != null && remote_path.Trim().Length > 0;
|
||||||
|
|
||||||
if (UpdateAddProjectButtonEvent != null)
|
if (UpdateAddProjectButtonEvent != null)
|
||||||
UpdateAddProjectButtonEvent (fields_valid);
|
UpdateAddProjectButtonEvent (fields_valid);
|
||||||
|
|
Loading…
Reference in a new issue