예제 #1
0
        /// <summary>
        /// given - open history form passing data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void lnkDetails_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            //instance of frmHistory passing constructor data
            frmHistory frmHistory = new frmHistory(LoadConstructorData());

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