예제 #1
0
        private void tsbtnAccount_Click(object sender, EventArgs e)
        {
            ConfirmPassword cf = new ConfirmPassword();
            cf.ShowDialog();

            if (bLogIn == true)
            {
                ucAccount = new UC_Account();
                ucAccount.Dock = DockStyle.Fill;
                iPage = 0;
                iSearch = 0;
                flagRefresh = 8;
                if (panelContent.Controls.Count > 1)
                {
                    panelContent.Controls.RemoveAt(1);
                    panelContent.Controls.Add(ucAccount);
                }
                else
                {
                    panelContent.Controls.Add(ucAccount);
                }
                tscboSearch.Items.Clear();
                tscboSearch.Items.Add("Search by Type");
                tscboSearch.Items.Add("Search by Amount");
                tscboSearch.Items.Add("Search by Date");
                tscboSearch.Items.Add("Search by Reason");
            }
        }
예제 #2
0
 public frmMain(UC_Account ucAccountLoad)
     : this()
 {
     this.ucAccount = ucAccountLoad;
 }