private void btn_AddRubrics_Click(object sender, EventArgs e)
        {
            Rubric.getInstance().Show();

            Rubrics r = new Rubrics();

            Rubric.getInstance().cmb_CLO.Items.Clear();
            r.AddToComboBox(Rubric.getInstance().cmb_CLO);

            Rubric.getInstance().Refresh();
            Rubric.getInstance().Location = this.Location;
            this.Close();
        }
예제 #2
0
        private void Rubric_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'projectBDataSet2.Rubric' table. You can move, or remove it, as needed.
            this.rubricTableAdapter.Fill(this.projectBDataSet2.Rubric);

            btn_AddRubrics.Enabled   = false;
            btn_AddRubrics.BackColor = Color.Gray;

            Rubrics r = new Rubrics();

            r.AddToComboBox(cmb_CLO);
            DataTable dt = r.ShowInGrid();

            dataGridView1.DataSource = dt;

            btn_Update.Enabled = false;
            btn_Add.Enabled    = true;
        }