Ejemplo n.º 1
0
        public PKut()
        {
            InitializeComponent();
            ReportInterface rI = new ReportInterface();

            InitializeComponent();
            minimapa.FirstPointVisible  = true;
            minimapa.SecondPointVisible = true;
            minimapa.ThirdPointVisible  = true;
            App.PLC.Update_1_s         += new PLCInterface.UpdateHandler(updatePage);
            App.PLC.Update_100_ms      += new PLCInterface.UpdateHandler(updatePage_100ms);
        }
Ejemplo n.º 2
0
        public App()
        {
            System.Diagnostics.Process.GetCurrentProcess().PriorityClass = System.Diagnostics.ProcessPriorityClass.High;
            InitializeComponent();
            MainReportInterface = ((ReportInterface)Application.Current.FindResource("MainReport"));

            PLC         = ((PLCInterface)Application.Current.FindResource("PLCinterf"));
            pIzvjestaji = new PIzvjestaji();
            pPostavke   = new PPostavke();
            pDimenzije  = new PDimenzije();
            pSrh        = new PSrh();
            pValovitost = new PValovitost();
            pSablja     = new PSablja();
            pKut        = new PKut();
            pRucno      = new PRucno();
            pRucno      = new PRucno();

            App.PLC.StartCyclic();
            App.PLC.Update_Online_Flag += new PLCInterface.OnlineMarker(PLCInterface_PLCOnlineChanged);
            App.PLC.Update_100_ms      += new PLCInterface.UpdateHandler(PLC_Update_100_ms);
            App.HDevExp.UpdateResult   += new HDevelopExport.UpdateHandler(HalconUpdate);
        }