コード例 #1
0
ファイル: Computer.cs プロジェクト: SunDayFirst/GUIDiploma
        public PCState GetState()
        {
            PCState curState = new PCState();

            curState.inputPlace   = m_input.GetCount();
            curState.warningPlace = m_warning.GetCount();
            curState.alertPlace   = m_alert.GetCount();
            return(curState);
        }
コード例 #2
0
 // view i-face
 public void GetStateMtx(out Dictionary <string, PCState> pcStates, out List <int> flushData)
 {
     pcStates = new Dictionary <string, PCState>();
     foreach (var pc in m_pcStorage)
     {
         string  curName  = pc.Key;
         PCState curState = pc.Value.GetState();
         pcStates.Add(curName, curState);
     }
     flushData = new List <int>();
     foreach (var fl in m_flushes)
     {
         flushData.Add(fl.MarksCount());
     }
 }