Esempio n. 1
0
        private void btn_insert_Click(object sender, EventArgs e)
        {
            InsertNew fm = new InsertNew();

            if (fm.ShowDialog() == DialogResult.OK)
            {
                dGrV_main.DataSource = SachBUS.LoadAll();
            }
            ;
        }
Esempio n. 2
0
        private void btn_Update_Click(object sender, EventArgs e)
        {
            int index = dGrV_main.SelectedRows.Count;

            if (index > 0)
            {
                DataGridViewCellCollection r = dGrV_main.SelectedRows[0].Cells;
                Sach      s  = createSach(r);
                InsertNew fm = new InsertNew(s);
                if (fm.ShowDialog() == DialogResult.OK)
                {
                    dGrV_main.DataSource = SachBUS.LoadAll();
                }
                ;
            }
        }
Esempio n. 3
0
 private void btn_load_all_Click(object sender, EventArgs e)
 {
     dGrV_main.DataSource          = SachBUS.LoadAll();
     dGrV_main.Columns[0].ReadOnly = true;
 }