public ServerConnectionForm(CoondornatorForm coondornatorParentForm) { InitializeComponent(); CoondornatorParentForm = coondornatorParentForm; // Attempt to load defaults string name = Properties.Settings.Default.UserName; string host = Properties.Settings.Default.Host; string password = ServerConnection.ToInsecureString(ServerConnection.DecryptString(Properties.Settings.Default.Password)); if (string.IsNullOrWhiteSpace(host)) { host = Coondornator.DefaultFileServer; } textBox1.Text = host; textBox2.Text = name; textBox3.Text = password; checkBox1.Checked = true; }
public ServerConnectionForm(CoondornatorForm parent) { InitializeComponent(); Parent = parent; // Attempt to load defaults string name = Properties.Settings.Default.UserName; string host = Properties.Settings.Default.Host; string password = ServerConnection.ToInsecureString(ServerConnection.DecryptString(Properties.Settings.Default.Password)); if (string.IsNullOrWhiteSpace(host)) { host = Coondornator.DefaultFileServer; } textBox1.Text = host; textBox2.Text = name; textBox3.Text = password; checkBox1.Checked = true; }
private void tsbCoondornator_Click(object sender, EventArgs e) { var coondornatorForm = new CoondornatorForm { MdiParent = this }; coondornatorForm.Show(); }