private void Retirer8_Click(object sender, RoutedEventArgs e) { MAJ e1 = MAJ.getInstance(); System.Windows.MessageBoxResult result = MessageBox.Show("Voulez vous vraiment cacher les mises a jour ?", " Mises a jour windows 10", MessageBoxButton.OKCancel, MessageBoxImage.Warning); if (result == MessageBoxResult.OK) { e1.braw7(); } }
private void downgradeWind8_Click(object sender, RoutedEventArgs e) { MAJ e1 = MAJ.getInstance(); System.Windows.MessageBoxResult result = MessageBox.Show("Voulez vous vraiment retirer les mises a jour ?", "Suppresion fichier temp", MessageBoxButton.OKCancel, MessageBoxImage.Warning); if (result == MessageBoxResult.OK) { e1.invoke7(); } }
public ActionResult detailPrest(string prestOTID, string mode, string prestDetailID = "") { mj = new MAJ(); var prestModel = new PrestationModel(); var prestType = ""; var prestEtat = ""; var IsPrestGroupe = false; var prestProduit = ""; var prestPrix = ""; var prestRefCmdClient = ""; var prestNbrPeriode = "0"; if (mode == "Ajouter") { prestEtat = "00"; DataTable dtN = Configs._query.executeProc("prestGetPrestationNbr", "OTID@int@" + prestOTID); if (Tools.verifyDataTable(dtN)) { //if (dtN.Rows[0][1].ToString() == "0")fix it prestRefCmdClient = dtN.Rows[0][0].ToString(); } } else if (mode == "Modifier") { DataTable dtPrest = Configs._query.executeProc("prestGetDetailPrest", "otid@int@" + prestOTID + "#type@string@0" + "#detailID@int@" + prestDetailID, true); if (dtPrest != null) { prestProduit = dtPrest.Rows[0]["Produit"].ToString(); prestPrix = dtPrest.Rows[0]["Prix"].ToString(); prestEtat = dtPrest.Rows[0]["Etat"].ToString(); prestType = dtPrest.Rows[0]["type"].ToString(); prestRefCmdClient = dtPrest.Rows[0]["RefCmdClient"].ToString(); prestNbrPeriode = dtPrest.Rows[0]["ProduitPeriodes"].ToString(); IsPrestGroupe = dtPrest.Rows[0]["PDG"] != DBNull.Value; } } ViewData["prestListPrestation"] = prestModel.listDTPrestation(prestType, prestOTID, prestProduit); if (!string.IsNullOrEmpty(prestDetailID) && prestDetailID != "-1") { ViewData["prestListPrestation"] = Configs._query.executeProc("prestGetpresMemeFamille", "id@int@" + prestDetailID); } ViewData["presStatus"] = Configs._query.executeProc("prestGetPropStatusPack", "etat@int@" + prestEtat); ViewData["RefCmdClient"] = prestRefCmdClient; ViewData["Etat"] = prestEtat; ViewData["Type"] = prestType; ViewData["Produit"] = prestProduit; ViewData["Prix"] = prestPrix; ViewData["mode"] = mode; ViewData["OTID"] = prestOTID; ViewData["prestDetailID"] = prestDetailID; ViewData["prestNbrPeriode"] = prestNbrPeriode; ViewData["IsPrestGroupe"] = IsPrestGroupe; return(View()); }