/// <summary> /// Changed data (eg. caused by the data saving process) will make a databound SourceGrid redraw, /// and through that it can get it's size wrong and appear too wide if the user has /// a non-standard display setting, (eg. "Large Fonts (120DPI). /// This Method fixes that by calling the 'AdjustAfterResizing' Method in Tabs that /// host a SourceGrid. /// </summary> private void CorrectDataGridWidthsAfterDataChange() { if (FUcoIndividualData != null) { FUcoIndividualData.AdjustAfterResizing(); } if (FUcoApplications != null) { FUcoApplications.AdjustAfterResizing(); } }
/// <summary> /// todoComment /// </summary> public void RefreshPersonnelDataAfterMerge(bool APartnerAttributesOrRelationsChanged) { if (FUcoIndividualData != null) { FUcoIndividualData.RefreshPersonnelDataAfterMerge(APartnerAttributesOrRelationsChanged); } if (FUcoApplications != null) { FUcoApplications.RefreshPersonnelDataAfterMerge(APartnerAttributesOrRelationsChanged); } }
/// <summary> /// Gets the data from all controls on this TabControl. /// The data is stored in the DataTables/DataColumns to which the Controls /// are mapped. /// </summary> public void GetDataFromControls() { if (FUcoIndividualData != null) { FUcoIndividualData.GetDataFromControls(); } if (FUcoApplications != null) { FUcoApplications.GetDataFromControls(); } }
/// <summary> /// Handler for command key processing /// </summary> private bool ProcessCmdKeyManual(ref Message msg, Keys keyData) { if ((this.tabPersonnel.SelectedTab == tpgIndividualData) && FUcoIndividualData.ProcessParentCmdKey(ref msg, keyData)) { return(true); } if ((this.tabPersonnel.SelectedTab == tpgApplications) && FUcoApplications.ProcessParentCmdKey(ref msg, keyData)) { return(true); } return(false); }
partial void PreInitUserControl(UserControl AUserControl) { if (AUserControl == FUcoIndividualData) { FUcoIndividualData.PartnerEditUIConnector = FPartnerEditUIConnector; FUcoIndividualData.InitialiseUserControl(); CalculateTabHeaderCounters(this); } else if (AUserControl == FUcoApplications) { FUcoApplications.PartnerEditUIConnector = FPartnerEditUIConnector; FUcoApplications.InitialiseUserControl(); CalculateTabHeaderCounters(FUcoApplications); } }
/// <summary> /// Changed data (eg. caused by the data saving process) will make a databound SourceGrid redraw, /// and through that it can get it's size wrong and appear too wide if the user has /// a non-standard display setting, (eg. "Large Fonts (120DPI). /// This Method fixes that by calling the 'AdjustAfterResizing' Method in Tabs that /// host a SourceGrid. /// </summary> private void CorrectDataGridWidthsAfterDataChange() { if (TClientSettings.GUIRunningOnNonStandardDPI) { if (FUcoIndividualData != null) { FUcoIndividualData.AdjustAfterResizing(); } if (FUcoApplications != null) { FUcoApplications.AdjustAfterResizing(); } } }
private void CalculateTabHeaderCounters(System.Object ASender) { if ((ASender is TUC_PartnerEdit_PersonnelTabSet) || (ASender is TUC_Applications) || (ASender is TUC_ApplicationData)) { if (FUcoApplications != null) { tpgApplications.Text = Catalog.GetString("Applications") + " (" + FUcoApplications.CountApplications().ToString() + ")"; } else if (FUcoIndividualData != null) { // This is really only needed if application tab has not been activated yet. The number // of applications still needs to be displayed and will already be available in Individual Data Tab. tpgApplications.Text = Catalog.GetString("Applications") + " (" + FUcoIndividualData.CountApplications().ToString() + ")"; } else { tpgApplications.Text = Catalog.GetString("Applications"); } } }