private void BtEnregistrer_Click(object sender, EventArgs e) { this.F6003BindingSource.EndEdit(); DBf6003BindingSource.EndEdit(); var F6003 = this.F6003BindingSource.Current as Model.F6003; if (F6003 != null) { _controller.Save(F6003.MF6003); } _CurrentF6003 = _controller.CurrentF6003(); DBf6003BindingSource.DataSource = _CurrentF6003; this.F6003BindingSource.DataSource = new Model.F6003(_CurrentF6003); }
public XtraFrmF6003(LiasseController controller) { _controller = controller; InitializeComponent(); gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit; _CurrentF6003 = controller.CurrentF6003(); DBf6003BindingSource.DataSource = _CurrentF6003; var Model = new Model.F6003(_CurrentF6003); this.F6003BindingSource.DataSource = new Model.F6003(_CurrentF6003); btEnregistrer.Click += BtEnregistrer_Click; btExporter.Click += BtExporter_Click; //this.gridView1.OptionsView.RowAutoHeight = true; //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap; saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6003BindingSource.Current); }