public UserLogin(CompanyList companyList, Master master_1) { InitializeComponent(); this.companyList = companyList; this.master_1 = master_1; this.ActiveControl = lblUName; }
private void btnBack_Click(object sender, EventArgs e) { master.RemoveCurrentTab(); CompanyList frm = new CompanyList(master, tabControl); master.AddNewTab(frm); // frm.Show(); }
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; }
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); }
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)); }
public CompanyInfo(CompanyList companyList) { InitializeComponent(); this.companyList = companyList; }