示例#1
0
        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
        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();
        }