Esempio n. 1
0
        //コンストラクタ
        public stateAdmin()
        {
            this.nowState         = stateAdmin.State.noinput;
            this.strRemarks       = new String[2, 4];
            this.iData            = new inputData();
            this.nowLang          = stateAdmin.Language.japanese;
            this.bChangeDepTime   = false;
            this.reason           = stateAdmin.CancelReason.badweather;
            this.bSetRemarks1     = false;
            this.bSetRemarks2     = false;
            this.bSetRemarks3     = false;
            this.bSetRemarks4     = false;
            this.dtChangeDepTime  = new DateTime(0);
            this.uiChangeLangTime = (uint)changeAutoLangTime.invalid;
            this.bMainFltImg      = false;
            this.bmpShareFlt      = new BitmapImage[4];

            this.bShareFltImg = new bool[4];

            for (int idx = 0; idx < (int)stateAdmin.codesharemax.value; idx++)
            {
                this.bShareFltImg[idx] = false;
            }

            //データファイル読み取り反映
            this.inputDataFromFileAuto();
        }
Esempio n. 2
0
 //状態を未入力に戻す
 public void resetState()
 {
     this.nowState         = stateAdmin.State.noinput;
     this.strRemarks       = new String[2, 4];
     this.iData            = new inputData();
     this.nowLang          = stateAdmin.Language.japanese;
     this.bChangeDepTime   = false;
     this.reason           = stateAdmin.CancelReason.badweather;
     this.bSetRemarks1     = false;
     this.bSetRemarks2     = false;
     this.bSetRemarks3     = false;
     this.bSetRemarks4     = false;
     this.dtChangeDepTime  = new DateTime(0);
     this.uiChangeLangTime = (uint)changeAutoLangTime.invalid;
     this.bMainFltImg      = false;
     for (int idx = 0; idx < (int)stateAdmin.codesharemax.value; idx++)
     {
         this.bShareFltImg[idx] = false;
     }
 }
Esempio n. 3
0
        public void inputDataFromFileAuto()
        {
            System.Xml.Serialization.XmlSerializer serial =
                new System.Xml.Serialization.XmlSerializer(typeof(inputData));

            //オープンをトライ。成功時のみ読み込み
            try
            {
                System.IO.StreamReader sr =
                    new System.IO.StreamReader(stateAdmin.inputDataSaveFileName, new System.Text.UTF8Encoding(false));

                this.iData = (inputData)serial.Deserialize(sr);

                sr.Close();

                this.iData.bInputCompFlg = true;
                restartState();
            }
            catch
            {
                return;
            }
        }