Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }