Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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();
         }
     }
 }
Exemplo n.º 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();
         }
     }
 }