public static VarGlobal Instance()
 {
     if (data == null)
     {
         data = new VarGlobal();
     }
     return(data);
 }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            DAL.VarGlobal Var_Global = DAL.VarGlobal.Instance();
            Var_Global.Global_id_s      = this.dataGridView1.CurrentRow.Cells[0].EditedFormattedValue.ToString();
            Var_Global.Global_name_s    = this.dataGridView1.CurrentRow.Cells[1].EditedFormattedValue.ToString();
            Var_Global.Global_last_s    = this.dataGridView1.CurrentRow.Cells[2].EditedFormattedValue.ToString();
            Var_Global.Global_section_s = this.dataGridView1.CurrentRow.Cells[3].EditedFormattedValue.ToString();
            Var_Global.Global_course_s  = this.dataGridView1.CurrentRow.Cells[4].EditedFormattedValue.ToString();
            Var_Global.Global_note_s    = this.dataGridView1.CurrentRow.Cells[5].EditedFormattedValue.ToString();
            Var_Global.Global_state_s   = this.dataGridView1.CurrentRow.Cells[6].EditedFormattedValue.ToString();
            Update newform = new Update();

            newform.ShowDialog();
            Select_Students();
        }