예제 #1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmDemo01_Edit frm = new frmDemo01_Edit();
     frm.ItemID = -1;
     if (frm.ShowDialog() == DialogResult.OK)
     {
         _model = new DataDemoEntities();
         LoadData();
     }
 }
예제 #2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmDemo01_Edit frm = new frmDemo01_Edit();

            frm.ItemID = -1;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                _model = new DataDemoEntities();
                LoadData();
            }
        }
예제 #3
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (tvData.SelectedNode != null)
     {
         frmDemo01_Edit frm = new frmDemo01_Edit();
         frm.ItemID = Convert.ToInt32(tvData.SelectedNode.Tag);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             _model = new DataDemoEntities();
             LoadData();
         }
     }
 }
예제 #4
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     if (tvData.SelectedNode != null)
     {
         frmDemo01_Edit frm = new frmDemo01_Edit();
         frm.ItemID = Convert.ToInt32(tvData.SelectedNode.Tag);
         if (frm.ShowDialog() == DialogResult.OK)
         {
             _model = new DataDemoEntities();
             LoadData();
         }
     }
 }