示例#1
0
        private void btnAddUser_Click(object sender, EventArgs e)
        {
            RegisterForm regf = new RegisterForm(servname);

            Hide();
            regf.reg = false;
            regf.ShowDialog();
            Close();
        }
示例#2
0
        private void linkLabel2_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            RegisterForm regf = new RegisterForm(servname);

            regf.reg = true;
            Hide();
            regf.ShowDialog();
            Show();
        }
示例#3
0
        private void btnEditProfile_Click(object sender, EventArgs e)
        {
            RegisterForm regf = new RegisterForm(servname);

            Hide();
            regf.upd   = true;
            regf.login = login;
            regf.ShowDialog();

            Show();
        }
示例#4
0
        private void btnSettings_Click(object sender, EventArgs e)
        {
            if (admin == true)
            {
                AdminForm admf = new AdminForm(servname);
                Hide();
                admf.login = lblName.Text;
                admf.ShowDialog();
                Show();
            }
            else
            {
                RegisterForm regf = new RegisterForm(servname);
                Hide();
                regf.upd   = true;
                regf.login = lblName.Text;
                regf.ShowDialog();

                Show();
            }
        }