Exemple #1
0
        /// <summary>
        /// given - open transaction form passing constructor data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void lnkTransaction_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            //instance of frmTransaction passing constructor data
            frmTransaction frmTransaction = new frmTransaction(LoadConstructorData());

            //open in frame
            frmTransaction.MdiParent = this.MdiParent;
            //show form
            frmTransaction.Show();
            this.Close();
        }
Exemple #2
0
 /// <summary>
 /// given - open transaction form passing constructor data
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void lnkTransaction_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     //instance of frmTransaction passing constructor data
     frmTransaction frmTransaction = new frmTransaction(
         (Client)clientBindingSource.DataSource,
         (BankAccount)bankAccountBindingSource.Current);
     //open in frame
     frmTransaction.MdiParent = this.MdiParent;
     //show form
     frmTransaction.Show();
     this.Close();
 }