Esempio n. 1
0
        private void SHV_GUI_Click(object sender, RoutedEventArgs e)
        {
            Thread SHV_GuiThread = new Thread(delegate()
            {
                Valve_GUI w = new Valve_GUI("Шиберный затвор", ref OPCObjects.SHV_Input, ref OPCObjects.SHV_Status, OPCUAWorker.OPCUAWorkerPaths.SHV_Input_path, OPCUAWorker.OPCUAWorkerPaths.SHV_Status_path);
                w.Show();
                System.Windows.Threading.Dispatcher.Run();
            });

            SHV_GuiThread.SetApartmentState(ApartmentState.STA);
            SHV_GuiThread.Start();
        }
Esempio n. 2
0
        private void FVV_B_GUI_Click(object sender, RoutedEventArgs e)
        {
            Thread FVV_B_GuiThread = new Thread(delegate()
            {
                Valve_GUI w = new Valve_GUI("Клапан большого сечения", ref OPCObjects.FVV_B_Input, ref OPCObjects.FVV_B_Status, OPCUAWorker.OPCUAWorkerPaths.FVV_B_Input_path, OPCUAWorker.OPCUAWorkerPaths.FVV_B_Status_path);
                w.Show();
                System.Windows.Threading.Dispatcher.Run();
            });

            FVV_B_GuiThread.SetApartmentState(ApartmentState.STA);
            FVV_B_GuiThread.Start();
        }
Esempio n. 3
0
        private void BAV3_GUI_Click(object sender, RoutedEventArgs e)
        {
            Thread BAV_3_GuiThread = new Thread(delegate()
            {
                Valve_GUI w = new Valve_GUI("Клапан напуска", ref OPCObjects.BAV_3_input, ref OPCObjects.BAV_3_status, OPCUAWorker.OPCUAWorkerPaths.BAV_3_Input_path, OPCUAWorker.OPCUAWorkerPaths.BAV_3_Status_path);
                w.Show();
                System.Windows.Threading.Dispatcher.Run();
            });

            BAV_3_GuiThread.SetApartmentState(ApartmentState.STA);
            BAV_3_GuiThread.Start();
        }