Example #1
0
 public ErrorReportControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     if (ControlsHelper.IsDesignMode(this))
     {
         return;
     }
     ErrorsFolderTextBox.Text   = LogHelper.Current.LogsFolder;
     MainBrowser.LoadCompleted += MainBrowser_LoadCompleted;
     RefreshErrorsComboBox();
     StatusLabel.Content = "";
 }
Example #2
0
        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;
        }
Example #3
0
 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();
     }
 }
Example #4
0
 public ProgressBarControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     ControlsHelper.SetText(ProgressLevelTopBarTextBlock, "");
     ControlsHelper.SetText(ProgressLevelSubBarTextBlock, "");
 }
 public HardwareDeviceControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
 }