public bool SaveContent() { bool rs = true; var passwordBox = FindControlByName.FindChild <PasswordBox>(Application.Current.MainWindow, "LogonPwdBox"); if (passwordBox != null && Username != null && Domain != null && Username.Length != 0 && Domain.Length != 0) { Password = passwordBox.Password; if (Password != null) { SetupInfo.SetValue(SetupInfoKeys.LogonUser, Username); SetupInfo.SetValue(SetupInfoKeys.LogonDomain, Domain); SetupInfo.SetValue(SetupInfoKeys.LogonPwd, Password); } else { rs = false; } } else { MessageBox.Show("Pleaes check the input."); rs = false; } return(rs); }
public bool SaveContent() { bool rs = true; if (NodelistValidator()) { SetupInfo.SetValue(SetupInfoKeys.NodeList, this.NodeList); } else { MessageBox.Show("Invalid input of node information."); rs = false; } return(rs); }
public bool SaveContent() { bool rs = true; if (AgentBinLocation != null && InstallationLocation != null && Directory.Exists(AgentBinLocation) && InstallationLocation.Length != 0) { var xcopy_template_file = System.IO.Path.Combine(AgentBinLocation, "machine.conf"); if (!System.IO.File.Exists(xcopy_template_file)) { System.IO.File.WriteAllText(xcopy_template_file, "xcopy template"); } SetupInfo.SetValue(SetupInfoKeys.SrvLocBin, AgentBinLocation); SetupInfo.SetValue(SetupInfoKeys.SrvRemoteBin, InstallationLocation); } else { MessageBox.Show("Invalid input for the path"); rs = false; } return(rs); }