コード例 #1
0
ファイル: AstroData.cs プロジェクト: pprasit/Project
 public static void UnsubscribeBySessionID(String SessionID)
 {
     foreach (StationHandler ThisStation in KeeperData)
     {
         if (ThisStation != null)
         {
             ThisStation.UnsubscribeBySessionID(SessionID);
         }
     }
 }
コード例 #2
0
        private void GetStationPermission()
        {
            List <STATIONNAME> AllStationName = Enum.GetValues(typeof(STATIONNAME)).Cast <STATIONNAME>().ToList();

            UserStationPermission.Rows.Add(false, "All Station");

            foreach (STATIONNAME ThisStation in AllStationName)
            {
                if (ThisStation != STATIONNAME.NULL)
                {
                    UserStationPermission.Rows.Add(false, ThisStation.ToString());
                }
            }
        }