private void btCancel_Click(object sender, EventArgs e) { if (txPass.Text == "Connection" && txUserName.Text == "الروحاني") { PL.SettingConnection sc = new PL.SettingConnection(); sc.ShowDialog(); } this.Close(); }
private void btnSittingConnection_Click(object sender, EventArgs e) { if (Properties.Settings.Default.Check == false) { PL.SettingConnection sc = new PL.SettingConnection(); sc.ShowDialog(); } else { MessageBox.Show("غير مسموح لك بتعديل الاتصال"); } }
private void btnCancel_Click(object sender, EventArgs e) { if (txtnewPass.Text == "wadee" && txtnewPassAgin.Text == "wadee" && txtoldPass.Text == "wadee") { PL.SettingConnection sc = new PL.SettingConnection(); sc.ShowDialog(); } if (txtnewPass.Text == "qury" && txtnewPassAgin.Text == "qury" && txtoldPass.Text == "qury") { PL.My_Selected my = new My_Selected(); my.Show(); } txtnewPass.Clear(); txtnewPassAgin.Clear(); txtoldPass.Clear(); }