private bool CanPerformCurrentAction()
{
bool flag2;
switch (this.currAction)
{
case Action.Main:
return ((this.server != string.Empty) && (this.user != string.Empty));
case Action.CreateUser:
flag2 = true;
for (int i = 0; i < this.nUserName.Length; i++)
{
char ch = this.nUserName[i];
if ((((ch < 'a') || (ch > 'z')) && ((ch < 'A') || (ch > 'Z'))) && (((ch < '0') || (ch > '9')) && ((ch != '-') && (ch != '_'))))
{
flag2 = false;
break;
}
}
break;
case Action.SetPassword:
return ((this.nPassword1 != string.Empty) && (this.nPassword1 == this.nPassword2));
case Action.CreateProject:
return (this.nProjectName != string.Empty);
case Action.ModifyUser:
return (this.nFullName != string.Empty);
default:
return false;
}
return ((((this.nFullName != string.Empty) && (this.nUserName != string.Empty)) && ((this.nPassword1 != string.Empty) && (this.nPassword1 == this.nPassword2))) && flag2);
}