private LevelVariableContext GetSelectedContext() { LevelVariableContextType contextType = LevelVariableContextType.None; string contextTarget = String.Empty; if (this.rdoSettingsLevelContextAll.Checked == true) { contextType = LevelVariableContextType.All; } else if (this.rdoSettingsLevelContextGamemode.Checked == true) { contextType = LevelVariableContextType.GameMode; if (this.cboSettingsGamemodes.SelectedItem != null) { contextTarget = ((CMap)this.cboSettingsGamemodes.SelectedItem).PlayList; } } else if (this.rdoSettingsLevelContextLevel.Checked == true) { contextType = LevelVariableContextType.Level; if (this.cboSettingsGamemodes.SelectedItem != null) { contextTarget = ((CMap)this.cboSettingsLevels.SelectedItem).FileName; } } return(new LevelVariableContext(contextType, contextTarget)); }
public LevelVariableContext(LevelVariableContextType lvctContextType, string strContextTarget) { this.ContextType = lvctContextType; this.ContextTarget = strContextTarget; }
public LevelVariableContext(LevelVariableContextType lvctContextType, string strContextTarget) { this.ContextType = lvctContextType; this.ContextTarget = strContextTarget; }
public LevelVariableContext(LevelVariableContextType lvctContextType) { this.ContextType = lvctContextType; this.ContextTarget = String.Empty; }
public LevelVariableContext(LevelVariableContextType lvctContextType) { this.ContextType = lvctContextType; this.ContextTarget = String.Empty; }