Beispiel #1
0
        public static bool WaitForDevice(IWin32Window owner)
        {
            if (DeviceExists())
            {
                return(true);
            }
            var form = new WaitingClovershellForm();

            form.ShowDialog(owner);
            return(form.DialogResult == DialogResult.OK);
        }
Beispiel #2
0
        public static bool WaitForDevice(IWin32Window owner, bool justWaiting = false)
        {
            if (DeviceExists())
            {
                return(true);
            }
            var form = new WaitingClovershellForm();

            if (justWaiting)
            {
                form.label1.Text = "1. " + Resources.MakeSureYourMiniIsConnected;
                form.label2.Text = "2. " + Resources.JustWaitForYourMini;
                //form.label3.Enabled = false;
                //form.buttonDriver.Enabled = false;
            }
            form.ShowDialog(owner);
            return(form.DialogResult == DialogResult.OK);
        }