public DelayInfoViewModel(DelayInfo Delay) : base() { CurrentDelay = Delay; SaveCommand = new CommandHandler(__Save, false); m_LiveDataBll = new LiveDataBLL(); AllDelayReasons = DelayReason.GetAllDelayReasons(); }
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(); } }