コード例 #1
0
        void Add()
        {
            Sell.FrmCustomerAcc newForm = new FrmCustomerAcc();
            newForm._Ref     = 0;
            newForm._FormMod = Enums.enmFormMod.Yeni;
            //yeniForm.MdiParent = frmAnaMenu.ActiveForm;
            newForm.ShowDialog();

            if (newForm.DialogResult == DialogResult.OK)
            {
                FillData();
            }
        }
コード例 #2
0
 void Show()
 {
     if (grdStock.RowCount > 0)
     {
         if (grdStock.FocusedRowHandle != -1)
         {
             Sell.FrmCustomerAcc newForm = new FrmCustomerAcc();
             newForm._Ref     = int.Parse(grdStock.GetFocusedRowCellValue("Ref").ToString());
             newForm._MenuNo  = this._MenuNo;
             newForm._FormMod = Enums.enmFormMod.Goruntule;
             newForm.ShowDialog();
         }
     }
 }
コード例 #3
0
        void Update()
        {
            if (grdStock.RowCount > 0)
            {
                if (grdStock.FocusedRowHandle != -1)
                {
                    Sell.FrmCustomerAcc newForm = new FrmCustomerAcc();
                    newForm._Ref     = int.Parse(grdStock.GetFocusedRowCellValue("Ref").ToString());
                    newForm._MenuNo  = this._MenuNo;
                    newForm._FormMod = Enums.enmFormMod.Guncelle;
                    //yeniForm.MdiParent = frmAnaMenu.ActiveForm;
                    newForm.ShowDialog();
                }
            }

            FillData();
        }