Exemple #1
0
        public MainWindow()
        {
            InitializeComponent();
            (new Arduistats.DropShadow()).ApplyShadows(this);
            OutToRichLog("Frame", "Starting engine...");
            InitBase();
            InitData();
            LockButton(LaBouleMagique);

            this.FormClosing += new FormClosingEventHandler(MainWindow_FormClosing);
            Debug.WriteLine(ACConfigManager.CheckIfValueExists());
        }
Exemple #2
0
        private void InitData()
        {
            bool isDomainHere = ACConfigManager.CheckIfValueExists();

            if (isDomainHere == true)
            {
                UnlockButton(LaBouleMagique);
                btn_serielConnect.Enabled = true;
                string _serverTime = ACConfigManager.getValue("servertime");
                int    servtimeInt = Int16.Parse(_serverTime);
                int    hours       = servtimeInt / 3600;
                InputServerTime.Text = hours.ToString();
                //_servertime > convert hours > covert decimal
                // Inp_NumericHours.Value = _serverTime;
                string _consideroff = ACConfigManager.getValue("consideroff");
                string _timertick   = ACConfigManager.getValue("timertick");
                OutToRichLog("HTTP", "Get Config servertime : " + _serverTime);
                DisableInputURLctrls();
            }
            else
            {
                //DisableConnection();
            }
        }