private void BtEnregistrer_Click(object sender, EventArgs e) { this.f6301BindingSource.EndEdit(); DBf6301BindingSource.EndEdit(); var f6301 = this.f6301BindingSource.Current as Model.F6301; if (f6301 != null) { _controller.Save(f6301.MF6301); } _CurrentF6301 = _controller.CurrentF6301(); DBf6301BindingSource.DataSource = _CurrentF6301; this.f6301BindingSource.DataSource = new Model.F6301(_CurrentF6301); }
public XtraFrmF6301(LiasseController controller) { _controller = controller; InitializeComponent(); gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit; _CurrentF6301 = controller.CurrentF6301(); DBf6301BindingSource.DataSource = _CurrentF6301; var Model = new Model.F6301(_CurrentF6301); this.f6301BindingSource.DataSource = new Model.F6301(_CurrentF6301); btEnregistrer.Click += BtEnregistrer_Click; btExporter.Click += BtExporter_Click; //this.gridView1.OptionsView.RowAutoHeight = true; //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap; saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6301BindingSource.Current); }