예제 #1
0
        private void createDatabaseButton_Click(object sender, System.EventArgs args)
        {
            var form = new CreateDatabaseForm(wizard, masterDataPath, masterLogPath);

            if (form.ShowDialog(wizard) == DialogResult.OK)
            {
                wizard.SetupState["database"] = form.Database;
                LoadDatabases();
            }

            wizard.SetFocusToNext();
        }
예제 #2
0
        private void createAccountButton_Click(object sender, System.EventArgs args)
        {
            CreateAccountForm form;

            wizard.SetupState["account"] = string.Empty;

            form = new CreateAccountForm(wizard);
            if (form.ShowDialog(wizard) == DialogResult.OK)
            {
                wizard.SetupState["account"]  = form.Account;
                wizard.SetupState["password"] = form.Password;
                LoadAccounts();
            }

            wizard.SetFocusToNext();
        }