private void LoginButton_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { EditSession form = new EditSession(); form.ShowDialog(); RefreshUserData(); } else if (e.Button == MouseButtons.Left) { if (!User.islogin) { UI.BLoginForm loginForm = new UI.BLoginForm { StartPosition = FormStartPosition.CenterScreen }; loginForm.Show(); loginForm.Login(); } else if (Environment.OSVersion.Platform == PlatformID.Win32NT) { UserInfoForm uf = new UserInfoForm(); uf.ShowDialog(); } else { QRLogin form = new QRLogin(); form.ShowDialog(); RefreshUserData(); } } }
private void LoginButton_Click(object sender, EventArgs e) { if (!User.islogin) { UI.BLoginForm loginForm = new UI.BLoginForm(); loginForm.StartPosition = FormStartPosition.CenterScreen; loginForm.Show(); loginForm.Login(); } else { UserInfoForm uf = new UserInfoForm(); uf.ShowDialog(); } }