コード例 #1
0
ファイル: MainWindow.cs プロジェクト: hejmsdz/SCNMonitor
        public MainWindow()
        {
            InitializeComponent();
            scn      = new SCNClient("http://www.scn.put.poznan.pl/main.php");
            netCheck = new NetworkChecker();
            netCheck.StateChanged += Netcheck_StateChanged;
            if (!Properties.Settings.Default.AutodetectNetwork)
            {
                timer.Start();
            }
            notifyIcon.Icon = DrawIcon();

            PopulateSettings();

            string[] args = Environment.GetCommandLineArgs();
            hidden = (args.Length >= 2 && args[1] == "-hide");

            TranslateUI();
        }
コード例 #2
0
ファイル: MainWindow.cs プロジェクト: hejmsdz/SCNMonitor
        public MainWindow()
        {
            InitializeComponent();
            scn = new SCNClient("http://www.scn.put.poznan.pl/main.php");
            netCheck = new NetworkChecker();
            netCheck.StateChanged += Netcheck_StateChanged;
            if (!Properties.Settings.Default.AutodetectNetwork)
            {
                timer.Start();
            }
            notifyIcon.Icon = DrawIcon();

            PopulateSettings();

            string[] args = Environment.GetCommandLineArgs();
            hidden = (args.Length >= 2 && args[1] == "-hide");

            TranslateUI();
        }