Exemple #1
0
        private void addBtn_Click(object sender, EventArgs e)
        {
            var addAssesmentForm = new AssesmentForm(levelComboBox.SelectedItem.ToString(),
                                                     titleTextBox.Text, Convert.ToInt32(assesmentCountTextBox.Value));

            addAssesmentForm.ShowDialog();

            switch (levelComboBox.SelectedItem.ToString())
            {
            case "Level4":
                AddItemsToDataGrid(parent.level4GridView,
                                   titleTextBox.Text, codeTextBox.Text, creditValueCMBBox.SelectedText);
                break;

            case "Level5":
                AddItemsToDataGrid(parent.level5GridView,
                                   titleTextBox.Text, codeTextBox.Text, creditValueCMBBox.SelectedText);
                break;

            case "Level6":
                AddItemsToDataGrid(parent.level6GridView,
                                   titleTextBox.Text, codeTextBox.Text, creditValueCMBBox.SelectedText);
                break;
            }
            parent.Show();
            this.Close();
        }
Exemple #2
0
        private void GoBtn_Click(object sender, EventArgs e)
        {
            var modulesForm = new ModulesForm(this);

            modulesForm.Show();
            this.Hide();
        }