예제 #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();
        }
예제 #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();
        }
예제 #3
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();
		}
예제 #4
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();
		}