Beispiel #1
0
        /// <summary>
        /// Form of the Eventlog.
        /// </summary>

        public MainWindow()
        {
            InitializeComponent();
            _mfvm = DataContext as MainFormViewModel;

            Hue.DetectLocalProxy = WinHueSettings.settings.DetectProxy;
            Trayicon.Icon        = Properties.Resources.icon;
            _mfvm.SetToolbarTray(Trayicon);
        }
Beispiel #2
0
        /// <summary>
        /// Form of the Eventlog.
        /// </summary>

        public MainWindow(Form_EventLog formEventLog)
        {
            _fel = formEventLog;
            InitializeComponent();
            _mfvm = DataContext as MainFormViewModel;
            _mfvm.Eventlogform   = _fel;
            Hue.DetectLocalProxy = WinHueSettings.settings.DetectProxy;
            trayicon.Icon        = Properties.Resources.icon;
            _mfvm.SetToolbarTray(trayicon);
        }