private void BtEnregistrer_Click(object sender, EventArgs e) { this.f6001BindingSource.EndEdit(); this.DBf6001BindingSource.EndEdit(); var f6001 = this.f6001BindingSource.Current as Model.F6001; if (f6001 != null) { _controller.Save(f6001.Mf6001); } _CurrentF6001 = _controller.CurrentF6001(); this.DBf6001BindingSource.DataSource = _CurrentF6001; this.f6001BindingSource.DataSource = new Model.F6001(_CurrentF6001); }
public XtraFrmF6001(LiasseController controller) { _controller = controller; InitializeComponent(); gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit; _CurrentF6001 = controller.CurrentF6001(); var Model = new Model.F6001(_CurrentF6001); this.DBf6001BindingSource.DataSource = _CurrentF6001; this.f6001BindingSource.DataSource = new Model.F6001(_CurrentF6001); btEnregistrer.Click += BtEnregistrer_Click; btExporter.Click += BtExporter_Click; //this.gridView1.OptionsView.RowAutoHeight = true; //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap; saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6001BindingSource.Current); }