private void BtEnregistrer_Click(object sender, EventArgs e) { this.F6004BindingSource.EndEdit(); DBf6004BindingSource.EndEdit(); var F6004 = this.F6004BindingSource.Current as Model.F6004; if (F6004 != null) { _controller.Save(F6004.MF6004); } _CurrentF6004 = _controller.CurrentF6004(); DBf6004BindingSource.DataSource = _CurrentF6004; this.F6004BindingSource.DataSource = new Model.F6004(_CurrentF6004); }
public XtraFrmF6004(LiasseController controller) { _controller = controller; InitializeComponent(); gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit; _CurrentF6004 = controller.CurrentF6004(); DBf6004BindingSource.DataSource = _CurrentF6004; this.F6004BindingSource.DataSource = new Model.F6004(_CurrentF6004); btEnregistrer.Click += BtEnregistrer_Click; btExporter.Click += BtExporter_Click; //this.gridView1.OptionsView.RowAutoHeight = true; //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap; saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6004BindingSource.Current); }