Example #1
0
        private void tsbAdd_Click(object sender, EventArgs e)
        {
            ControlState      controlState = ControlState.New;
            ByProductPartForm form         = new ByProductPartForm(controlState);

            if (DialogResult.OK == form.ShowDialog())
            {
                BindData();
            }
        }
Example #2
0
 private void gvList_DoubleClick(object sender, EventArgs e)
 {
     if (gvList.FocusedRowHandle > -1)
     {
         ControlState      controlState = ControlState.Edit;
         DataRow           dr           = gvList.GetFocusedDataRow();
         string            partNum      = dr["PART_ID"].ToString().Trim();
         ByProductPartForm form         = new ByProductPartForm(controlState, partNum);
         if (DialogResult.OK == form.ShowDialog())
         {
             BindData();
         }
     }
 }