internal SettingsWindow(ServiceMonitor monitor, ProductInfoManager productInfoManager)
 {
     SetValue(MonitorProperty, monitor);;
     SetValue(ProductInfoProperty, productInfoManager);
     SetValue(ConfigManagerProperty, ConfigurationManager.Instance);
     InitializeComponent();
 }
 internal SettingsWindow(ServiceMonitor monitor, ProductInfoManager productInfoManager)
 {
     SetValue(MonitorProperty, monitor); ;
     SetValue(ProductInfoProperty, productInfoManager);
     SetValue(ConfigManagerProperty, ConfigurationManager.Instance);
     InitializeComponent();
 }
Beispiel #3
0
        public MainWindow()
        {
            InitializeComponent();

            Title = AppName + " Monitor";
            lblServiceName.Content = AppName + " Service";
            lblAPIName.Content     = AppName + " API";

            serviceMonitor = new ServiceMonitor();
            serviceMonitor.OnStatusUpdated += serviceMonitor_OnStatusUpdated;
            serviceMonitor.SystemGoChanged += serviceMonitor_SystemGoChanged;

            productInfoManager = new ProductInfoManager();

            ConfigFile.ConfigUpdated      += NmcConfigSetter_ConfigUpdated;
            ConfigFile.NamecoinConfigInfo += NmcConfigSettings_NameCoinConfigInfo;
            NmcConfigSettings.ValidateNmcConfig();

            Program.OnAdditionalInstanceSignal += OnRequestShow;

            this.Closing += MainWindow_Closing;
            this.Closed  += MainWindow_Closed;

            this.StateChanged += MainWindow_StateChanged;

            MyNotifyIcon.DoubleClickCommandParameter = MyNotifyIcon;


            this.Loaded += MainWindow_Loaded;
        }