Exemple #1
0
        public DialogResult Wait(out bool key, string reason, BaseDriver driver)
        {
            this.reason.Text = reason;
            key = true;
            driver.Log("Wait for: " + reason);
            DialogResult result = ShowDialog();

            key = false;
            return(result);
        }
        public DeviceSelectionForm(BaseDriver driver)
        {
            InitializeComponent();
            this.driver   = driver;
            interfaceMask = (int)driver.deviceInterface;
            Text          = "INDIGO " + driver.deviceInterface.ToString("g") + " Selector";
            Client client = BaseDriver.client;

            client.Mutex.WaitOne();
            foreach (Server server in client.Servers)
            {
                serverAdded(server);
            }
            client.Mutex.ReleaseMutex();
            client.ServerAdded   += serverAdded;
            client.ServerRemoved += serverRemoved;
        }