public FrmAddReplaceSale(ISale sale)
        {
            _sale = sale;
            var controls = _sale.CreateView();

            controls.ForEach(c =>
            {
                if (c.Name.Equals("tblAddReplace"))
                {
                    ((MaterialRadioButton)c.Controls.Find("rdoCredit", true)?[0]).CheckedChanged += RdtIsChecked;
                }
            });
            this.flyContainer.Controls.AddRange(controls.ToArray());
            ((MaterialSingleLineTextField)this.flyContainer.Controls.Find("txtNit", true)[0]).Visible = false;
        }
 public FrmDetailSale(ISale sale)
 {
     _sale = sale;
     this.flyContainer.Controls.AddRange(_sale.CreateView().ToArray());
 }