예제 #1
0
 public RobotInterface(StationDisplay statDisplay, ModuleDisplay ModuleDisplayCntrl,
                       ResultTable ResultTableCntrl, PartHistoryTable HistoryCntrl,
                       ModuleState ModuleStateInfo, WagoBKBase BK)
 {
     m_StationDisplay     = statDisplay;
     m_ResultDisplay      = ResultTableCntrl;
     m_PartHistoryDisplay = HistoryCntrl;
     m_ModuleDisplay      = ModuleDisplayCntrl;
     m_ModuleState        = ModuleStateInfo;
     m_BK = BK;
 }
예제 #2
0
            public Canvas(ModuleDisplay Parent)
            {
                m_Parent = Parent;

                bitmap          = new Bitmap(m_Parent.Width, m_Parent.Height);
                bitmapGraphics  = Graphics.FromImage(bitmap);
                controlGraphics = CreateGraphics();
                this.SetStyle(ControlStyles.AllPaintingInWmPaint |
                              ControlStyles.UserPaint |
                              ControlStyles.OptimizedDoubleBuffer, true);
                UpdateStyles();
                //this.MouseClick += new System.Windows.Forms.MouseEventHandler(this.OnMouseClick);
                // this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.OnKeyUp);
            }