Beispiel #1
0
        ///<summary>Not available in selection mode.</summary>
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            Deposit deposit = new Deposit();

            deposit.DateDeposit     = DateTime.Today;
            deposit.BankAccountInfo = PrefC.GetString(PrefName.PracticeBankNumber);
            FormDepositEdit FormD = new FormDepositEdit(deposit);

            FormD.IsNew = true;
            FormD.ShowDialog();
            if (FormD.DialogResult == DialogResult.Cancel)
            {
                return;
            }
            FillGrid();
        }
Beispiel #2
0
        private void grid_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e)
        {
            if (IsSelectionMode)
            {
                SelectedDeposit = DList[e.Row];
                DialogResult    = DialogResult.OK;
                return;
            }
            //not selection mode.
            FormDepositEdit FormD = new FormDepositEdit(DList[e.Row]);

            FormD.ShowDialog();
            if (FormD.DialogResult == DialogResult.Cancel)
            {
                return;
            }
            FillGrid();
        }
		///<summary>Not available in selection mode.</summary>
		private void butAdd_Click(object sender, System.EventArgs e) {
			Deposit deposit=new Deposit();
			deposit.DateDeposit=DateTime.Today;
			deposit.BankAccountInfo=PrefC.GetString(PrefName.PracticeBankNumber);
			FormDepositEdit FormD=new FormDepositEdit(deposit);
			FormD.IsNew=true;
			FormD.ShowDialog();
			if(FormD.DialogResult==DialogResult.Cancel){
				return;
			}
			FillGrid();
		}
		private void grid_CellDoubleClick(object sender, OpenDental.UI.ODGridClickEventArgs e) {
			if(IsSelectionMode){
				SelectedDeposit=DList[e.Row];
				DialogResult=DialogResult.OK;
				return;
			}
			//not selection mode.
			FormDepositEdit FormD=new FormDepositEdit(DList[e.Row]);
			FormD.ShowDialog();
			if(FormD.DialogResult==DialogResult.Cancel){
				return;
			}
			FillGrid();
		}