Esempio n. 1
0
        private void BtEnregistrer_Click(object sender, EventArgs e)
        {
            this.f6304BindingSource.EndEdit();
            DBf6304BindingSource.EndEdit();
            var f6304 = this.f6304BindingSource.Current as Model.F6304;

            if (f6304 != null)
            {
                _controller.Save(f6304.MF6304);
            }
            _CurrentF6304 = _controller.CurrentF6304();
            DBf6304BindingSource.DataSource    = _CurrentF6304;
            this.f6304BindingSource.DataSource = new Model.F6304(_CurrentF6304);
        }
Esempio n. 2
0
        public XtraFrmF6304(LiasseController controller)
        {
            _controller = controller;
            InitializeComponent();
            gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit;
            _CurrentF6304 = controller.CurrentF6304();
            DBf6304BindingSource.DataSource = _CurrentF6304;
            var Model = new Model.F6304(_CurrentF6304);

            this.f6304BindingSource.DataSource = new Model.F6304(_CurrentF6304);
            btEnregistrer.Click += BtEnregistrer_Click;
            btExporter.Click    += BtExporter_Click;
            //this.gridView1.OptionsView.RowAutoHeight = true;
            //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap;
            saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6304BindingSource.Current);
        }