public ShellForm() { InitializeComponent(); Text = Properties.Settings.Default.ApplicationFriendlyName; AppearanceManager.LoadBaseSettings(this); AppLogger.SetTargetInvoking(logUC1.UpdateLogs); logUC1.UpdateLogs(AppLogger.GetLogs()); // Load logs that may have been written before delegate could be set. // Sometimes the designer will regenerate the selected index of a tab control to be something different, but they should always initialize at 0. mainTabControl.SelectedIndex = 0; }
public ShellForm() { InitializeComponent(); Text = Properties.Settings.Default.ApplicationFriendlyName; _logUC = new LogUC { Padding = _defaultContentAreaPadding, Dock = DockStyle.Fill }; AppLogger.SetTargetInvoking(_logUC.UpdateLogs); _logUC.UpdateLogs(AppLogger.GetLogs()); // Load logs that may have been written before delegate could be set. MainContentPanel.Controls.Add(new IntroductionUC { Padding = _defaultContentAreaPadding, Dock = DockStyle.Fill }); }