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); }
public FormLogon(MDataSet.LocalSettingRow _sourceRow) { InitializeComponent(); this.localSettingBindingSource.DataSource = _sourceRow; }