public Expedition SetCurrentSelectionAsFormation(EnumFormationName p_name) { GetFormation(p_name).Clear(); GetFormation(p_name).AddRange(m_selected); m_selected.Clear(); SelectFormation(p_name); return(this); }
public Formation GetFormation(EnumFormationName p_name) { if (!IsAFormation(p_name)) { return(null); } return(m_formations[(int)p_name]); }
public void SelectFormation(EnumFormationName p_name) { if (IsAFormationSelected()) { GetFormation(m_formationSelected).IsSelected = false; } else { m_selected.Clear(); } m_formationSelected = p_name; if (IsAFormationSelected()) { GetFormation(m_formationSelected).IsSelected = true; } }
/******** PROTECTED ************************/ /******** PRIVATE ************************/ private bool IsAFormation(EnumFormationName p_name) { return(p_name != EnumFormationName.e_expedition); }