/// <summary> /// Called when the main screen is activated /// </summary> public void RunOnceOnParentActivationManual() { // We need to populate the Currency box on the filter panel since it has not been cloned from a details panel // which is what 'normally' happens // Create a control to clone from Ict.Petra.Client.CommonControls.TCmbAutoPopulated cmbSource = new CommonControls.TCmbAutoPopulated(); cmbSource.ListTable = CommonControls.TCmbAutoPopulated.TListTableEnum.CurrencyCodeList; cmbSource.InitialiseUserControl(); // Populate our filter combo from this one TCmbAutoComplete cmbCurrency = (TCmbAutoComplete)FFilterAndFindObject.FilterPanelControls.FindControlByName("cmbCurrency"); cmbCurrency.DisplayMember = cmbSource.cmbCombobox.DisplayMember; cmbCurrency.ValueMember = cmbSource.cmbCombobox.ValueMember; cmbCurrency.DataSource = ((DataView)cmbSource.cmbCombobox.DataSource).ToTable().DefaultView; }
/// <summary> /// Called when the main screen is activated /// </summary> public void RunOnceOnParentActivationManual() { // We need to populate the Currency box on the filter panel since it has not been cloned from a details panel // which is what 'normally' happens // Create a control to clone from Ict.Petra.Client.CommonControls.TCmbAutoPopulated cmbSource = new CommonControls.TCmbAutoPopulated(); cmbSource.ListTable = CommonControls.TCmbAutoPopulated.TListTableEnum.CurrencyCodeList; cmbSource.InitialiseUserControl(); // Populate our filter combo from this one TCmbAutoComplete cmbCurrency = (TCmbAutoComplete)FFilterAndFindObject.FilterPanelControls.FindControlByName("cmbCurrency"); cmbCurrency.DisplayMember = cmbSource.cmbCombobox.DisplayMember; cmbCurrency.ValueMember = cmbSource.cmbCombobox.ValueMember; cmbCurrency.DataSource = ((DataView)cmbSource.cmbCombobox.DataSource).ToTable().DefaultView; }