예제 #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();
            }
            ;
        }
예제 #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();
                }
                ;
            }
        }
예제 #3
0
        private void Edit(Sach s)
        {
            InsertNew fm = new InsertNew(s);

            fm.ShowDialog();
        }