private void btn_Login_Click(object sender, EventArgs e) { Server.Service1 server = new Server.Service1(); bool islogin; bool ispassed; server.SLoginUser(txt_Email.Text, txt_Password.Text, out islogin, out ispassed); if (ispassed) { if (islogin) { MessageBox.Show("You are Successfully entered Or Sunao :'D !"); EnterUser n = new EnterUser(); n.setUserFormAttr(txt_Email.Text, txt_Password.Text); n.refreshComponents(); n.Show(); this.Hide(); } else { MessageBox.Show("You cant log in because u are not a member of Or sunao"); } } txt_Email.Clear(); txt_Password.Clear(); }
private void lbl_EnterUser_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { if (EnterUser.EnterUserForm == null) { EnterUser n = new EnterUser(); EnterUser.EnterUserForm = n; } EnterUser.EnterUserForm.Show(); this.Hide(); }
private void btn_Exit_Click(object sender, EventArgs e) { if (EnterUser.EnterUserForm == null) { EnterUser n = new EnterUser(); EnterUser.EnterUserForm = n; } EnterUser.EnterUserForm.Show(); this.Hide(); }
private void lbl_login_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { Server.Service1 server = new Server.Service1(); server.SOfflineUser(lbl_name.Text); EnterUserForm = this; if (LoginUser.LoginUserForm == null) { LoginUser.LoginUserForm = new LoginUser(); } this.Hide(); LoginUser.LoginUserForm.Show(); }
private void btn_Deactivate_Click(object sender, EventArgs e) { Server.Service1 server = new Server.Service1(); bool isPassed; bool Passed; server.DeactivateMyAccount(email, password, out isPassed, out Passed); EnterUserForm = this; if (LoginUser.LoginUserForm == null) { LoginUser.LoginUserForm = new LoginUser(); } this.Hide(); LoginUser.LoginUserForm.Show(); }
private void EnterUser_Load(object sender, EventArgs e) { EnterUser.EnterUserForm = this; flowLayoutPanel1.Controls.Clear(); List <string> strnamer = new List <string>(); Server.Service1 server = new Server.Service1(); string[] strnamer1 = strnamer.ToArray(); server.getUsersContacts(EnterUser.EnterUserForm.email, ref strnamer1); foreach (string s in strnamer1) { UserControl4 uc = new UserControl4(s); flowLayoutPanel1.Controls.Add(uc); } }