public override bool EditProperties() { StringCollection strc = GetUnitGroupNames(); string strName = m_ug != null ? m_ug.Name : ""; int n = PickListForm.DoModal("Unit Group", strName, strc); if (n == -1) { return(false); } LevelDoc lvld = (LevelDoc)DocManager.GetActiveDocument(typeof(LevelDoc)); m_ug = (UnitGroup)lvld.UnitGroupManager.Items[n]; m_fInit = true; return(true); }
public override bool EditProperties() { StringCollection strc = GetUnitTypeNames(); string strName = m_ut != UnitType.kutNone ? Helper.GetDisplayName(typeof(UnitType), m_ut.ToString()) : ""; int n = PickListForm.DoModal("Unit Type", strName, strc); if (n == -1) { return(false); } LevelDoc lvld = (LevelDoc)DocManager.GetActiveDocument(typeof(LevelDoc)); m_ut = (UnitType)n; m_fInit = true; return(true); }
public override bool EditProperties() { StringCollection strc = GetAreaNames(); int n = PickListForm.DoModal("Area", m_strArea, strc); if (n == -1) { return(false); } m_strArea = strc[n]; if (m_strArea == "") { return(false); } m_fInit = true; return(true); }