Exemplo n.º 1
0
        private UserControl InitInvoiceTradePutletAll(ref String TagControl, ref string Title)
        {
            UserControl usControl;

            MDataSet.LocalSettingRow _localset = (this.localSettingBindingSource.CurrencyManager.Current as DataRowView).Row as MDataSet.LocalSettingRow;

            if (_localset.Printer == "Maria")
            {
                usControl = new InvoiceTradePutletAll(this.mDataSet);

                (usControl as InvoiceTradePutletAll).Dock = DockStyle.Fill;

                (usControl as InvoiceTradePutletAll).Tag = Title;
            }

            else
            {
                usControl = new InvoiceTradePutletDatecs(this.mDataSet);

                (usControl as InvoiceTradePutletDatecs).Dock = DockStyle.Fill;

                (usControl as InvoiceTradePutletDatecs).Tag = Title;
            }

            return(usControl);
        }
Exemplo n.º 2
0
        public FormLogon(MDataSet.LocalSettingRow _sourceRow)
        {
            InitializeComponent();

            this.localSettingBindingSource.DataSource = _sourceRow;
        }