private void BtEnregistrer_Click(object sender, EventArgs e) { this.f6303BindingSource.EndEdit(); DBf6303BindingSource.EndEdit(); var f6303 = this.f6303BindingSource.Current as Model.F6303; if (f6303 != null) { _controller.Save(f6303.MF6303); } _CurrentF6303 = _controller.CurrentF6303(); DBf6303BindingSource.DataSource = _CurrentF6303; this.f6303BindingSource.DataSource = new Model.F6303(_CurrentF6303); }
public XtraFrmF6303(LiasseController controller) { _controller = controller; InitializeComponent(); gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit; _CurrentF6303 = controller.CurrentF6303(); DBf6303BindingSource.DataSource = _CurrentF6303; var Model = new Model.F6303(_CurrentF6303); this.f6303BindingSource.DataSource = new Model.F6303(_CurrentF6303); btEnregistrer.Click += BtEnregistrer_Click; btExporter.Click += BtExporter_Click; //this.gridView1.OptionsView.RowAutoHeight = true; //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap; saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6303BindingSource.Current); }