Наследование: System.Windows.Forms.Form
Пример #1
0
        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;
        }
Пример #2
0
        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;
        }
Пример #3
0
 private void tsbCoondornator_Click(object sender, EventArgs e)
 {
     var coondornatorForm = new CoondornatorForm { MdiParent = this };
     coondornatorForm.Show();
 }