public WorkSeeControl(MainController mainController)
        {
            InitializeComponent();

            _mainController  = mainController;
            _workManager     = mainController.WorkManager;
            _localIniManager = mainController.LocalIniManager;
        }
Example #2
0
        public void ReadLocalIni()
        {
            _localIniManager = new IniManager(DefineSeting.LocalSettingIniFullPath);

            DefineSeting.LoginStepNo   = _localIniManager.GetKeyValue("Step", "step");
            DefineSeting.LoginStepName = _localIniManager.GetKeyValue("Step", "stepName");
            DefineSeting.OutPath       = _localIniManager.GetKeyValue("Output", "path");
            if (Directory.Exists(DefineSeting.OutPath) == false)
            {
                DefineSeting.OutPath = "";
            }
            DefineSeting.SetServerPath(_localIniManager.GetKeyValue("Setting", "serverPath"));


            int value;

            DefineSeting.Day = 1;
            if (int.TryParse(_localIniManager.GetKeyValue("See", "day"), out value))
            {
                DefineSeting.Day = value;
            }

            DefineSeting.Second = 30;
            if (int.TryParse(_localIniManager.GetKeyValue("See", "second"), out value))
            {
                DefineSeting.Second = value;
            }

            DefineSeting.TimeOutSecond = 20;
            if (int.TryParse(_localIniManager.GetKeyValue("Setting", "timeout"), out value))
            {
                DefineSeting.TimeOutSecond = value;
            }

            DefineSeting.FinishTime = 1;
            double value2;

            if (double.TryParse(_localIniManager.GetKeyValue("Setting", "finishTime"), out value2))
            {
                DefineSeting.FinishTime = value2;
            }
        }