Compass.Coondornator.ServerConnectionForm.ServerConnectionForm C# (CSharp) Method

ServerConnectionForm() public method

public ServerConnectionForm ( CoondornatorForm coondornatorParentForm ) : System
coondornatorParentForm CoondornatorForm
return System
        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;
        }