public void RegisterClick() { frmRegister register = new frmRegister(); register.Show(); }
private void btnAddNew_Click(object sender, EventArgs e) { if (currentTab.Text == Language.Resource.ManageEmails) { frmMailUpdate mails = new frmMailUpdate(); mails.Show(); } else if (currentTab.Text == Language.Resource.ManageConnections) { frmConnectionUpdate connections = new frmConnectionUpdate(); connections.Show(); } else if (currentTab.Text == Language.Resource.ManageAccounts) { frmAccountUpdate accounts = new frmAccountUpdate(); accounts.Show(); } else if (currentTab.Text == Language.Resource.ManageUsers) { frmMain main = (frmMain)Application.OpenForms["frmMain"]; main.Logout(); this.Close(); frmRegister register = new frmRegister(); register.Show(); } }