コード例 #1
0
ファイル: DelayInfoViewModel.cs プロジェクト: dfoehl/leibit
 public DelayInfoViewModel(DelayInfo Delay)
     : base()
 {
     CurrentDelay    = Delay;
     SaveCommand     = new CommandHandler(__Save, false);
     m_LiveDataBll   = new LiveDataBLL();
     AllDelayReasons = DelayReason.GetAllDelayReasons();
 }
コード例 #2
0
        public DelayInfoViewModel(DelayInfo Delay)
            : base()
        {
            CurrentDelay  = Delay;
            SaveCommand   = new CommandHandler(__Save, false);
            m_LiveDataBll = new LiveDataBLL();

            if (Delay.Schedule.Schedule.Station.ESTW.InfrastructureManager == eInfrastructureManager.DB)
            {
                AllDelayReasons = DelayReason.GetDBDelayReasons();
            }
            else if (Delay.Schedule.Schedule.Station.ESTW.InfrastructureManager == eInfrastructureManager.OEBB)
            {
                AllDelayReasons = DelayReason.GetOEBBDelayReasons();
            }
        }