private void BtEnregistrer_Click(object sender, EventArgs e) { this.f6002BindingSource.EndEdit(); DBf6002BindingSource.EndEdit(); var f6002 = this.f6002BindingSource.Current as Model.F6002; if (f6002 != null) { _controller.Save(f6002.Mf6002); } _CurrentF6002 = _controller.CurrentF6002(); DBf6002BindingSource.DataSource = _CurrentF6002; this.f6002BindingSource.DataSource = new Model.F6002(_CurrentF6002); }
public XtraFrmF6002(LiasseController controller) { _controller = controller; InitializeComponent(); gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit; _CurrentF6002 = controller.CurrentF6002(); DBf6002BindingSource.DataSource = _CurrentF6002; var Model = new Model.F6002(_CurrentF6002); this.f6002BindingSource.DataSource = new Model.F6002(_CurrentF6002); btEnregistrer.Click += BtEnregistrer_Click; btExporter.Click += BtExporter_Click; //this.gridView1.OptionsView.RowAutoHeight = true; //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap; saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6002BindingSource.Current); }