/// <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())) { } }
/// <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); }
/// <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, }); }
/// <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)); }
/// <summary> /// CTOR /// </summary> internal CommandsTable() { _cmds = new MgArrayList(); }
/// <summary>CTOR</summary> public ControlTable() { _controls = new MgArrayList(); }
/// <summary> /// CTOR /// </summary> internal TasksTable() { _tasks = new MgArrayList(); }
/// <summary> CTOR</summary> public ColorsTable() { _colors = new MgArrayList(); _bgColors = new MgArrayList(); _fgColors = new MgArrayList(); }