コード例 #1
0
 public UserLogin(CompanyList companyList, Master master_1)
 {
     InitializeComponent();
     this.companyList   = companyList;
     this.master_1      = master_1;
     this.ActiveControl = lblUName;
 }
コード例 #2
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            master.RemoveCurrentTab();
            CompanyList frm = new CompanyList(master, tabControl);

            master.AddNewTab(frm);
            // frm.Show();
        }
コード例 #3
0
 public UserLogin(CompanyList companyList, Master master, TabControl tabControl)
 {
     // TODO: Complete member initialization
     InitializeComponent();
     this.companyList   = companyList;
     this.master        = master;
     this.tabControl    = tabControl;
     this.ActiveControl = lblUName;
 }
コード例 #4
0
        private void btnBack1_Click(object sender, EventArgs e)
        {
            //panel1.Visible = true;
            //panel2.Visible = false;
            master.RemoveCurrentTab();
            CompanyList frm = new CompanyList(master, tabControl);

            master.AddNewTab(frm);
        }
コード例 #5
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));
        }
コード例 #6
0
 public CompanyInfo(CompanyList companyList)
 {
     InitializeComponent();
     this.companyList = companyList;
 }