private void Login_Click(object sender, EventArgs e) { //perform calls to verify user credentials masterObject.pass = Password.Text; var res = masterObject.JRvalid(masterObject.jiraLogin); var rest = masterObject.TRvalid(masterObject.testrailLogin); //jira 19 validation if (res.IsSuccessStatusCode == false) { ResetForm("Jira cred, Retry!"); } string credet = CredentialCache.DefaultCredentials.ToString(); //testrail validation, if credentials are good, rest is not null if (rest == null) { ResetForm("Testrail cred Retry"); } if (res.IsSuccessStatusCode && rest != null) { LoginPanel.Hide(); TestrailPanel.Show(); JiraPanel.Show(); GetPlansB.Hide(); } masterObject.pass = Password.Text; }
private void RegisterTab_Click(object sender, EventArgs e) { if (currentTabIndex == 0) { timer_slider.Start(); LoginTab.BackColor = Color.FromArgb(59, 102, 128); RegisterTab.BackColor = Color.FromArgb(23, 117, 173); RegistrationPanel.Show(); LoginPanel.Hide(); currentTabIndex = 1; } }
public virtual void Start() { if (AllowLogin) { LoginPanel[] panels = Resources.FindObjectsOfTypeAll <LoginPanel>(); if (panels.Length > 0) { _loginPanel = panels[0]; // Assume only one type of this object exists. if (!ConnectionMgr.Instance.IsLoggedIn) { if (ShowLogin) { Debug.Log("Showing login panel"); _loginPanel.Show(); } } else { _loginPanel.Hide(); UpdateAccountInfo(ConnectionMgr.Instance.CurrentAccount); } } else { Debug.LogError("Missing valid LoginPanel prefab in this scene!"); } } if (AllowOptions) { OptionsPanel[] panels = Resources.FindObjectsOfTypeAll <OptionsPanel>(); if (panels.Length > 0) { _optionsPanel = panels[0]; // Assume only one type of this object exists. _optionsPanel.Hide(); } else { Debug.LogError("Missing valid OptionPanel prefab in this scene!"); } } if (ShowHideTransition) { if (_transitionPanel != null) { _transitionPanel.Hide(); } } }
private void BtnGoSignUp_Click(object sender, EventArgs e) { SignUpPanel.Show(); LoginPanel.Hide(); try { bindingNavigatorAddNewItem.PerformClick(); } catch (System.Data.NoNullAllowedException) { MessageBox.Show("Don't Do this Again xD"); } }
private void registerToolStripMenuItem_Click(object sender, EventArgs e) { if (i == 0) { registerpanel.Show(); // LoginPanel.Hide(); // MessageBox.Show("u clicked i = 0"); i++; } else { LoginPanel.Hide(); // MessageBox.Show("u clicked i>0"); } }
private void OnConnect(object sender, EventArgs e) { // Switch from login mode to contact list mode ContactListPanel.Show(); LoginPanel.Hide(); LogoffMenu.Enabled = true; AddBuddyToolStripMenuItem.Enabled = true; ServerDiscoToolStripMenuItem.Enabled = true; PopulateAwayMessages(); UserLabel.Text = XmppGlobal.Connection.Username; StatusChooser1.Text = "Online"; StatusChooser1.Enabled = true; }
//Submit Button private async void SigninBtn_Click(object sender, EventArgs e) { //Check if Id and password are not empty if (NameBox.Text != "" && PassBox.Text != "") { //If Login Case if (SigninBtn.ButtonText == "Login") { //DOLOGIN : by Sending user and pw to reader Class of data base SignInResult resutl = LoginSys.SignIn(NameBox.Text, PassBox.Text); if (resutl.LoggedIn) { //If Login Operation Successfull , Show the Ui LoginPanel.Dock = DockStyle.None; LoginPanel.Hide(); LoginPanel.SendToBack(); UserLabel.Show(); UserBtn.Show(); DetectBtn.Show(); TrainBtn.Show(); LockBtn.Show(); ExitBtn.Show(); mark2.Show(); UserLabel.Text = resutl.UserData.Name.ToUpperInvariant(); DetectionPanel.Show(); } else { label3.Text = resutl.Reason; } } else { //If Registration Senario : Sending User and pw to Writer Class bool suResult = await LoginSys.SignUp(NameBox.Text, PassBox.Text, "", 0); if (suResult) { label3.Text = "Registration Done Sucessfully"; } } } }
public void ChangeState(States st) { LoginPanel.Hide(); NewUserPanel.Hide(); MainMenuPanel.Hide(); state = st; if (state == States.Login) { LoginPanel.Show(); } if (state == States.NewUser) { NewUserPanel.Show(); } if (state == States.MainMenu) { MainMenuPanel.Show(); } }
private void Login_NewUserBtn_Click(object sender, EventArgs e) { state = States.NewUser; LoginPanel.Hide(); NewUserPanel.Show(); }