public ErrorReportControl() { InitHelper.InitTimer(this, InitializeComponent); if (ControlsHelper.IsDesignMode(this)) { return; } ErrorsFolderTextBox.Text = LogHelper.Current.LogsFolder; MainBrowser.LoadCompleted += MainBrowser_LoadCompleted; RefreshErrorsComboBox(); StatusLabel.Content = ""; }
public MessageBoxWindow() { InitHelper.InitTimer(this, InitializeComponent); LinkTextBlock.Visibility = Visibility.Collapsed; // Center owner. var owner = Application.Current?.MainWindow; if (owner != null) { Owner = owner; WindowStartupLocation = WindowStartupLocation.CenterOwner; } Loaded += MessageBoxWindow_Loaded; }
public InfoControl() { InitHelper.InitTimer(this, InitializeComponent); if (!ControlsHelper.IsDesignMode(this)) { var assembly = Assembly.GetEntryAssembly(); var product = ((AssemblyProductAttribute)Attribute.GetCustomAttribute(assembly, typeof(AssemblyProductAttribute))).Product; var description = ((AssemblyDescriptionAttribute)Attribute.GetCustomAttribute(assembly, typeof(AssemblyDescriptionAttribute))).Description; DefaultHead = product; DefaultBody = description; SetHead(DefaultHead); SetBodyInfo(DefaultBody); InitRotation(); } }
public ProgressBarControl() { InitHelper.InitTimer(this, InitializeComponent); ControlsHelper.SetText(ProgressLevelTopBarTextBlock, ""); ControlsHelper.SetText(ProgressLevelSubBarTextBlock, ""); }
public HardwareDeviceControl() { InitHelper.InitTimer(this, InitializeComponent); }