private void butAttachDep_Click(object sender,EventArgs e) {
			if(TransCur.DepositNum==0){//trying to attach
				FormDeposits FormD=new FormDeposits();
				FormD.IsSelectionMode=true;
				FormD.ShowDialog();
				if(FormD.DialogResult==DialogResult.Cancel){
					return;
				}
				TransCur.DepositNum=FormD.SelectedDeposit.DepositNum;
				textSourceDeposit.Text=FormD.SelectedDeposit.DateDeposit.ToShortDateString()
					+"  "+FormD.SelectedDeposit.Amount.ToString("c");
				butAttachDep.Text=Lan.g(this,"Detach");
			}
			else{//trying to detach
				TransCur.DepositNum=0;
				textSourceDeposit.Text="";
				butAttachDep.Text=Lan.g(this,"Attach");
			}
		}
Exemplo n.º 2
0
		private void butDeposit_Click(object sender, System.EventArgs e) {
			if(!Security.IsAuthorized(Permissions.DepositSlips,DateTime.Today)){
				return;
			}
			FormDeposits FormD=new FormDeposits();
			FormD.ShowDialog();
		}