private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormAccountingAutoPayEdit FormA = new FormAccountingAutoPayEdit();

            FormA.AutoPayCur = (AccountingAutoPay)payAL[e.Row];
            FormA.ShowDialog();
            if (FormA.AutoPayCur == null)          //user deleted
            {
                payAL.RemoveAt(e.Row);
            }
            FillPayGrid();
        }
        private void butAddPay_Click(object sender, EventArgs e)
        {
            AccountingAutoPay         autoPay = new AccountingAutoPay();
            FormAccountingAutoPayEdit FormA   = new FormAccountingAutoPayEdit();

            FormA.AutoPayCur = autoPay;
            FormA.IsNew      = true;
            if (FormA.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            payAL.Add(autoPay);
            FillPayGrid();
        }
예제 #3
0
		private void butAddPay_Click(object sender,EventArgs e) {
			AccountingAutoPay autoPay=new AccountingAutoPay();
			FormAccountingAutoPayEdit FormA=new FormAccountingAutoPayEdit();
			FormA.AutoPayCur=autoPay;
			FormA.IsNew=true;
			if(FormA.ShowDialog()!=DialogResult.OK) {
				return;
			}
			payList.Add(autoPay);
			FillPayGrid();
		}
예제 #4
0
		private void gridMain_CellDoubleClick(object sender,ODGridClickEventArgs e) {
			FormAccountingAutoPayEdit FormA=new FormAccountingAutoPayEdit();
			FormA.AutoPayCur=payList[e.Row];
			FormA.ShowDialog();
			if(FormA.AutoPayCur==null){//user deleted
				payList.RemoveAt(e.Row);
			}
			FillPayGrid();
		}