Ejemplo n.º 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 = "";
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 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();
     }
 }
Ejemplo n.º 4
0
 public ProgressBarControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
     ControlsHelper.SetText(ProgressLevelTopBarTextBlock, "");
     ControlsHelper.SetText(ProgressLevelSubBarTextBlock, "");
 }
Ejemplo n.º 5
0
 public HardwareDeviceControl()
 {
     InitHelper.InitTimer(this, InitializeComponent);
 }