Esempio n. 1
0
        bool CompileGraphicDispalyExpression(tblDisplay _tbldisplay, SimpleOperation simpleoperation, DisplayObjectParameters _Parameters)
        {
            Compiler       compiler = new Compiler();
            CrossReference Lookup   = ((TabDisplayPageControl)parentDrawGraphic.Parentpagelist.Parenttabgraphicpagecontrol).tbldisplay.crossreference;

            return(compiler.CompileGraphicDispalyExpression(_tbldisplay, simpleoperation, _Parameters));
        }
        public TabDisplayPageControl(long id)
            : base(id)
        {
            InitializeComponent();
            //_drawarea = new DrawArea(this);
            TabPageType   = TABPAGETYPE.DISPLAY;
            drawarea.Size = new System.Drawing.Size(1280, 830);
            _tbldisplay   = tblSolution.m_tblSolution().GetDisplayFromID(ID);
#if EWSAPP
            _displayobject = new DisplayObject(_tbldisplay);
#endif
        }
Esempio n. 3
0
 public bool CompileGraphicDispalyExpressions(tblDisplay _tbldisplay)
 {
     foreach (DisplayObjectDynamicProperty graphicobjectproperty in objDisplayObjectDynamicPropertys.list)
     {
         foreach (DisplayObjectDynamicPropertyCondition cs in graphicobjectproperty.ConditionList)
         {
             if (!CompileGraphicDispalyExpression(_tbldisplay, cs.SimpleOperation, this.objDisplayObjectParameters))
             {
                 MainForm.Instance().WriteToOutputWindows("Expression compile error");
                 return(false);
             }
         }
     }
     return(true);
 }
        void AddNodeToDisplayTree(tblDisplay _tbldisplay, long _parentid, EWSTreeNode parentewstreenode)
        {
            if (_parentid > 0)
            {
                List <tblDisplay> currentDisplays = Global.EWS.m_tblSolution.GetDisplays(_parentid);

                for (int i = 0; i < currentDisplays.Count; i++)
                {
                    if (currentDisplays[i].oIndex != i)
                    {
                        currentDisplays[i].oIndex = i;
                        currentDisplays[i].Update();
                    }
                }

                foreach (tblDisplay tbldisplay in currentDisplays)
                {
                    if (tbldisplay.IsDisplay)
                    {
                        EWSTreeNode node0 = new EWSTreeNode(tbldisplay.DisplayName);
                        node0.NodeID = tbldisplay.DisplayID;

                        node0.Nodetype           = TREE_NODE_TYPE.DISPLAY;
                        node0.ContextMenuStrip   = contextMenuStripDisplay;
                        node0.ImageIndex         = 3;
                        node0.SelectedImageIndex = 4;

                        parentewstreenode.Nodes.Add(node0);
                    }

                    else
                    {
                        EWSTreeNode node0 = new EWSTreeNode(tbldisplay.DisplayName);
                        node0.NodeID = tbldisplay.DisplayID;

                        node0.Nodetype           = TREE_NODE_TYPE.DISPALYGROUP;
                        node0.ContextMenuStrip   = contextMenuStripFolder;
                        node0.ImageIndex         = 2;
                        node0.SelectedImageIndex = 3;

                        parentewstreenode.Nodes.Add(node0);
                        //AddNodeToDisplayTree(_domain, tbldisplay.DisplayID, node0);
                    }
                }
            }
        }
Esempio n. 5
0
 public DisplayObject(tblDisplay tocopy)
 {
     DisplayName  = tocopy.DisplayName;
     Description  = tocopy.Description;
     BackColor    = tocopy.BackColor;
     Grid         = tocopy.Grid;
     Grid_X       = tocopy.Grid_X;
     Grid_Y       = tocopy.Grid_Y;
     Snap         = tocopy.Snap;
     Snap_X       = tocopy.Snap_X;
     Snap_Y       = tocopy.Snap_Y;
     Footer       = tocopy.Footer;
     Prepair      = tocopy.Prepair;
     Approved     = tocopy.Approved;
     DocNo        = tocopy.DocNo;
     SheetNo      = tocopy.SheetNo;
     Description  = tocopy.Description;
     Revision     = tocopy.Revision;
     LastUpdate   = tocopy.LastUpdate;
     Layer1Enable = tocopy.Layer1Enable;
     Layer1Lock   = tocopy.Layer1Lock;
     Layer2Enable = tocopy.Layer2Enable;
     Layer2Lock   = tocopy.Layer2Lock;
     Layer3Enable = tocopy.Layer3Enable;
     Layer3Lock   = tocopy.Layer3Lock;
     Layer4Enable = tocopy.Layer4Enable;
     Layer4Lock   = tocopy.Layer4Lock;
     Layer5Enable = tocopy.Layer5Enable;
     Layer5Lock   = tocopy.Layer5Lock;
     Layer6Enable = tocopy.Layer6Enable;
     Layer6Lock   = tocopy.Layer6Lock;
     Layer7Enable = tocopy.Layer7Enable;
     Layer7Lock   = tocopy.Layer7Lock;
     Layer8Enable = tocopy.Layer8Enable;
     Layer8Lock   = tocopy.Layer8Lock;
     TopPageID    = tocopy.TopPageID;
     DownPageID   = tocopy.DownPageID;
     LeftPageID   = tocopy.LeftPageID;
     RightPageID  = tocopy.RightPageID;
     Height       = tocopy.Height;
     Width        = tocopy.Width;
 }