private void AchatAbort_Click(object sender, EventArgs e) { textachat = ""; panel_Achat.Hide(); panel_Achat2.Hide(); Action.Show(); }
private void dataGridView2_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { Action.Show(dataGridView2, e.Location); } }
private void VUser_Click(object sender, EventArgs e) { ViewUsersRequests.Show(); hidebuttons(); Action.Text = "Remove User"; Reset.Text = "Edit User"; Action.Show(); Reset.Show(); }
private void EUser_Click(object sender, EventArgs e) { showinputs(); hidebuttons(); Action.Text = "Save Changes"; Reset.Text = "Reset Changes"; Action.Show(); Reset.Show(); }
private void RUser_Click(object sender, EventArgs e) { showinputs(); hidebuttons(); disableinputs(); Action.Text = "Remove User"; Reset.Text = "Reset"; Action.Show(); }
private void AUser_Click(object sender, EventArgs e) { showinputs(); hidebuttons(); Action.Text = "Add User"; Reset.Text = "Reset"; Action.Show(); Reset.Show(); }
private void VRequest_Click(object sender, EventArgs e) { ViewUsersRequests.Show(); hidebuttons(); Action.Text = "Accept Request"; Reset.Text = "Decline Request"; Action.Show(); Reset.Show(); //Shoof ht3mlaha hide ezay lama tedoos 3ala el buttons ely m3aha //hena w fi view users }
private void dataGridView1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { Action.Show(dataGridView1, e.Location); } foreach (DataGridViewRow row in dataGridView1.SelectedRows) { ingdesc = row.Cells[0].Value.ToString(); ingmeass = row.Cells[1].Value.ToString().ToCharArray(); } }
private void dataGridView1_MouseDown(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Right) { Action.Show(dataGridView1, e.Location); } foreach (DataGridViewRow row in dataGridView1.SelectedRows) { RecipeID = row.Cells[0].Value.ToString(); status = row.Cells[2].Value.ToString(); } }
private void ValAchat_Click(object sender, EventArgs e) { if (limiteur[0] == false) { switch (Type.SelectedIndex) { case 0: textachat += "s" + 13; break; case 1: textachat += "f" + 13; break; case 2: textachat += "r" + 13; Corps.numRD[Corps.tour] = true; break; default: break; } textachat += Localisation.GetItemText(Localisation.SelectedIndex) + 13; if (i == NumAchat.Value) { panel_Achat.Hide(); panel_Achat2.Hide(); Action.Show(); limiteur[0] = true; } else { Type.SelectedIndex = 0; Localisation.SelectedIndex = 0; } } else { MessageBox.Show("Vous ne pouvez effectuer cette action qu'une fois par tour.", "IT SIM", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void LoginButton_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(passwordTextbox.Text) || string.IsNullOrEmpty(userTextbox.Text)) { MessageBox.Show("Enter Username Or Password", "Invalid operation", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { UserInfo ob = new UserInfo(); ob = sd.GetUserName(username); if (ob.UserName == username && ob.UserPassword == password && ob.Status == 1) { Action frm = new Action(); frm.Show(); this.Hide(); } else if (ob.UserName == username && ob.UserPassword == password && ob.Status == 2) { searchTeacher frm1 = new searchTeacher(); frm1.Show(); this.Hide(); } else if (ob.UserName == username && ob.UserPassword == password && ob.Status == 3) { searchStudent frm2 = new searchStudent(); frm2.Show(); this.Hide(); } else { MessageBox.Show("Invalid User Name Or Password", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } }
private void button1_Click(object sender, EventArgs e) { Action ob = new Action(); ob.Show(); }
private void NivAbort_Click(object sender, EventArgs e) { panelNiv.Hide(); Action.Show(); }