示例#1
0
        /// <summary>
        ///   parse the form structure
        /// </summary>
        /// <param name = "taskRef">reference to the ownerTask of this form</param>
        public void fillData()
        {
            _formsStringXml = new MgArrayList();

            XmlParser parser = Manager.GetCurrentRuntimeContext().Parser;

            while (initInnerObjects(parser.getNextTag()))
            {
            }
        }
示例#2
0
        /// <summary>
        ///   add all commands which are not attached to any window into the current window
        /// </summary>
        internal void copyUnframedCmds()
        {
            MgArrayList unframedCmds = ClientManager.Instance.getUnframedCmds();

            for (int i = 0; i < unframedCmds.Count; i++)
            {
                CmdsToClient.Add((IClientCommand)unframedCmds[i]);
            }

            unframedCmds.SetSize(0);
        }
示例#3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="control"></param>
        /// <param name="properties"></param>
        static void BuildVisibleLayersListProperty(MgControlBase control, Dictionary <string, DesignerPropertyInfo> properties)
        {
            MgArrayList value = control.GetTabControlChoiceLayerList();

            properties.Add(Constants.WinPropVisibleLayerList, new DesignerPropertyInfo()
            {
                VisibleInPropertyGrid = false,
                Value            = value,
                IsDefaultValue   = false,
                IsNativeProperty = false,
            });
        }
示例#4
0
        /// <summary>
        /// get the current layer of the tab control, according to the current tab page and the visible layer list property.
        /// The value returned is the 1-based property value, not the 0-based tab index
        /// </summary>
        /// <param name="tabControl"></param>
        /// <returns></returns>
        int GetCurrentTabControlLayer(MgTabControl tabControl)
        {
            MgArrayList visibleLayers  = (MgArrayList)componentsDictionary[tabControl].GetProperties()[Constants.WinPropVisibleLayerList].GetValue(tabControl);
            int         currentTabPage = tabControl.SelectedIndex;

            // no visible layers property - return current tab page layer. Add 1 since the layers are 1-based, and tabpage index is 0-based
            if (visibleLayers.Count == 0 || ((string[])visibleLayers[0]).Length == 0)
            {
                return(currentTabPage + 1);
            }

            string currentTabPageLayerString = ((string[])visibleLayers[0])[currentTabPage];

            return(Int32.Parse(currentTabPageLayerString));
        }
示例#5
0
 /// <summary>
 ///   CTOR
 /// </summary>
 internal CommandsTable()
 {
     _cmds = new MgArrayList();
 }
示例#6
0
 /// <summary>CTOR</summary>
 public ControlTable()
 {
     _controls = new MgArrayList();
 }
示例#7
0
 /// <summary>
 ///   CTOR
 /// </summary>
 internal TasksTable()
 {
     _tasks = new MgArrayList();
 }
示例#8
0
 /// <summary> CTOR</summary>
 public ColorsTable()
 {
     _colors   = new MgArrayList();
     _bgColors = new MgArrayList();
     _fgColors = new MgArrayList();
 }