public FrmF6004Mau(LiasseController controller)
        {
            InitializeComponent();
            _controller = controller;

            foreach (var item in dataLayoutControl1.Items)
            {
                if (item is LayoutControlItem && (item as LayoutControlItem).Control is TextEdit)
                {
                    //your code

                    var txt = ((item as LayoutControlItem).Control as TextEdit);
                    if ("ActeDeDepotTextEdit" == txt.Name)
                    {
                        continue;
                    }
                    if ("NatureDepotTextEdit" == txt.Name)
                    {
                        continue;
                    }
                    txt.EnterMoveNextControl = true;
                    txt.Properties.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.Numeric;
                    txt.Properties.DisplayFormat.FormatString = "N3";
                    txt.Properties.EditFormat.FormatType      = DevExpress.Utils.FormatType.Numeric;
                    txt.Properties.EditFormat.FormatString    = "N3";
                    txt.Properties.Mask.EditMask = "N3";
                    txt.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
                    if (txt.Properties.ReadOnly)
                    {
                        txt.Properties.AllowFocused = false;
                    }
                    txt.Validated += Txt_Validated;
                }
                if (item is LayoutControlGroup)
                {
                    var lcg = item as LayoutControlGroup;
                    if (lcg.TextVisible && lcg.GroupBordersVisible)
                    {
                        lcg.ExpandButtonVisible = true;
                        lcg.Expanded            = false;
                    }
                }
            }
            btEnregistrer.Click += BtEnregistrer_Click;
            btExporter.Click    += BtExporter_Click;
            this.F6004BindingSource.DataSource = controller.CurrentF6004ModeleAutorsie();
            saveFileDialog1.FileName           = controller.GetXmlFileName(this.F6004BindingSource.Current);
        }
        public Frm6005(LiasseController controller)
        {
            InitializeComponent();
            _controller = controller;
            foreach (var item in dataLayoutControl1.Items)
            {
                if (item is LayoutControlItem && (item as LayoutControlItem).Control is TextEdit)
                {
                    //your code

                    var txt = ((item as LayoutControlItem).Control as TextEdit);
                    switch (txt.Name)
                    {
                    case "ActeDeDepotTextEdit":
                        continue;

                    case "NatureDepotTextEdit":
                        continue;

                    case "F60050000CodeformejuridiqueTextEdit":
                        continue;

                    case "F60050000CategorieTextEdit":
                        continue;

                    case "F60050001TextEdit":
                        continue;

                    case "F60051001TextEdit":
                        continue;

                    case "F60050055TextEdit":
                        continue;

                    case "F60051055TextEdit":
                        continue;
                    }
                    txt.EnterMoveNextControl = true;
                    txt.Properties.DisplayFormat.FormatType   = DevExpress.Utils.FormatType.Numeric;
                    txt.Properties.DisplayFormat.FormatString = "N3";
                    txt.Properties.EditFormat.FormatType      = DevExpress.Utils.FormatType.Numeric;
                    txt.Properties.EditFormat.FormatString    = "N3";
                    txt.Properties.Mask.EditMask = "N3";
                    txt.Properties.Mask.MaskType = DevExpress.XtraEditors.Mask.MaskType.Numeric;
                    if (txt.Properties.ReadOnly)
                    {
                        txt.Properties.AllowFocused = false;
                    }
                    txt.Validated += Txt_Validated;
                }
                if (item is LayoutControlGroup)
                {
                    var lcg = item as LayoutControlGroup;
                    if (lcg.TextVisible && lcg.GroupBordersVisible)
                    {
                        lcg.ExpandButtonVisible = true;
                        lcg.Expanded            = false;
                    }
                }
            }
            btEnregistrer.Click += BtEnregistrer_Click;
            btExporter.Click    += BtExporter_Click;
            this.f6005BindingSource.DataSource = controller.CurrentF6005();
        }