public void Update(IncrementationDB incrementation) { this.SaveIncrementationDBToFile(incrementation); }
/// <summary> /// /// </summary> /// <param name="IncDB"></param> /// <exception cref="IOException">This exception is thrown if the archive already exists</exception> public void Execut(IncrementationDB incrementation) { incrementation.DateCreation = DateTime.Now; incrementation.Code = this.GenererCode(incrementation); base.Execut(incrementation); }
public void Delete(IncrementationDB incrementation) { System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(@"db_query/"); System.IO.File.Delete(@"db_query/" + incrementation.Code + ".xml"); }
/// <summary> /// Enregistrer la requête dans le ficier XML sans l'excuter /// </summary> /// <param name="incrementation"></param> public void SaveWithOutExecut(IncrementationDB incrementation) { this.ValidateQuery(incrementation); this.SaveIncrementationDBToFile(incrementation); }
/// <summary> /// Exécuter la requête sur la base de donénes actuel puis l'enregistrer en XML /// </summary> /// <param name="Incrementation"></param> public void Execut(IncrementationDB incrementation) { this.ExecutInDataBase(incrementation); this.SaveIncrementationDBToFile(incrementation); }
private void bt_delete_Click(object sender, EventArgs e) { IncrementationDB inc = (IncrementationDB)incrementationDBBindingSource.Current; new IncrementDB_BAO().Delete(inc); this.refresh(); }
private void charger(IncrementationDB increment) { IncTextBox.Text = increment.Increment; //DecTextBox.Text = increment.Decrement; textBoxTitre.Text = increment.Titre; }