private void SystemComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { string selSysName = SystemComboBox.SelectedItem.ToString(); MtGlobals.SystemName selectSys = MtCommon.GetEnumValueByString <MtGlobals.SystemName>(selSysName); switch (selectSys) { case MtGlobals.SystemName.AC: m_ltCurSystemNames = CreateCheckBox(MtCommon.GetEnumAttributeNames(typeof(MtGlobals.ACSubSystem))); StandardSysList.ItemsSource = m_ltCurSystemNames; break; case MtGlobals.SystemName.WSAD: m_ltCurSystemNames = CreateCheckBox(MtCommon.GetEnumAttributeNames(typeof(MtGlobals.WSADSubSystem))); StandardSysList.ItemsSource = m_ltCurSystemNames; break; case MtGlobals.SystemName.MG: m_ltCurSystemNames = CreateCheckBox(MtCommon.GetEnumAttributeNames(typeof(MtGlobals.MGSubSystem))); StandardSysList.ItemsSource = m_ltCurSystemNames; break; case MtGlobals.SystemName.Steam: m_ltCurSystemNames = CreateCheckBox(MtCommon.GetEnumAttributeNames(typeof(MtGlobals.SteamSubSystem))); StandardSysList.ItemsSource = m_ltCurSystemNames; break; default: break; } }
private string GetTunnelName(string tunnelName) { return((MtCommon.GetEnumValueByString <MtGlobals.Tunnel>(tunnelName)).ToString()); }
private string GetSubsystemCode(string subsystem) { return(((int)MtCommon.GetEnumValueByString <MtGlobals.EPSystem>(subsystem)).ToString()); }