Exemplo n.º 1
0
        protected override FrmDetailBase GetDetailForm()
        {
            FrmTASheetGroupDetail frm = new FrmTASheetGroupDetail();

            frm.SheetType = "A";
            return(frm);
        }
 private void btn_OTSheet_Click(object sender, EventArgs e)
 {
     try
     {
         FrmTASheetGroupDetail frm = new FrmTASheetGroupDetail();
         frm.SheetType = "A";
         frm.IsAdding = true;
         DataGridViewRow row = null;
         frm.ItemAdded += delegate(object obj, ItemAddedEventArgs args)
         {
             row = Add_A_Row(args.AddedItem, true);
         };
         frm.ItemUpdated += delegate(object obj, ItemUpdatedEventArgs args)
         {
             ShowItemInGridViewRow(row, args.UpdatedItem);
         };
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error");
     }
 }
Exemplo n.º 3
0
 private void btn_OTSheet_Click(object sender, EventArgs e)
 {
     try
     {
         FrmTASheetGroupDetail frm = new FrmTASheetGroupDetail();
         frm.SheetType = "A";
         frm.IsAdding  = true;
         DataGridViewRow row = null;
         frm.ItemAdded += delegate(object obj, ItemAddedEventArgs args)
         {
             row = Add_A_Row(args.AddedItem, true);
         };
         frm.ItemUpdated += delegate(object obj, ItemUpdatedEventArgs args)
         {
             ShowItemInGridViewRow(row, args.UpdatedItem);
         };
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error");
     }
 }
 protected override FrmDetailBase GetDetailForm()
 {
     FrmTASheetGroupDetail frm = new FrmTASheetGroupDetail();
     frm.SheetType = "A";
     return frm;
 }