コード例 #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     using (VisionSensorStore store = GetVisionSensorStore())
     {
         Application.Run(new TelaSensor(store));
     }
 }
コード例 #2
0
        public void Initialize(VisionSensorStore visionSensorStore)
        {
            store = visionSensorStore;
            UpdateControls();
            CleanUp();

            // Display Initial Program List.

            // Notify ActiveToolChanged event to imageDisplayControl to draw active tool window.
        }
コード例 #3
0
        private static VisionSensorStore GetVisionSensorStore()
        {
            VisionSensorStore store = null;

            try
            {
                store = new VisionSensorStore();
            }
            catch (ApplicationException e)
            {
                // You may have tried multiple activations.
                MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Environment.Exit(0);
            }
            ChooseNicInCaseMultiplyClientNicsAreAvailable();
            return(store);
        }
コード例 #4
0
 public TelaSensor(VisionSensorStore store)
 {
     InitializeComponent();
     telaPrincipal.Initialize(store);
 }