Beispiel #1
0
 public UserLogin(CompanyList companyList, Master master, TabControl tabControl)
 {
     // TODO: Complete member initialization
     InitializeComponent();
     this.companyList = companyList;
     this.master      = master;
     this.tabControl  = tabControl;
 }
Beispiel #2
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            master.RemoveCurrentTab();
            CompanyList frm = new CompanyList(master, tabControl);

            master.AddNewTab(frm);
            // frm.Show();
        }
Beispiel #3
0
        protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
        {
            if (keyData == Keys.Escape)
            {
                // tabControl.TabPages.Remove(tabControl.SelectedTab);
                DialogResult dr = MessageBox.Show("Do you want to Exit?", "Exit", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                if (dr == DialogResult.Yes)
                {
                    master.RemoveCurrentTab();
                    CompanyList frm = new CompanyList(master, tabControl);
                    master.AddNewTab(frm);
                }
                return(true);
            }


            return(base.ProcessCmdKey(ref msg, keyData));
        }
Beispiel #4
0
 public UserLogin(CompanyList companyList, Master master_1)
 {
     InitializeComponent();
     this.companyList = companyList;
     this.master_1    = master_1;
 }
Beispiel #5
0
 public CompanyInfo(CompanyList companyList)
 {
     InitializeComponent();
     this.companyList = companyList;
 }