Exemplo n.º 1
0
 //bekapcsolja a projethez szükséges gombokat
 private void EnableMenus()
 {
     commandLine.IsEnabled     = true;
     runButton.IsEnabled       = true;
     runMenuItem.IsEnabled     = true;
     clearButton.IsEnabled     = true;
     clearMenuItem.IsEnabled   = true;
     saveButton.IsEnabled      = true;
     saveMenuItem.IsEnabled    = true;
     saveAsMenuItem.IsEnabled  = true;
     methodMenu.IsEnabled      = true;
     projectinfoBar.Visibility = System.Windows.Visibility.Visible;
     if (bluehelp != null && bluehelp.IsConnected())
     {
         runbtButton.IsEnabled = true;
     }
 }
Exemplo n.º 2
0
        private async Task BTUpdate()
        {
            BluetoothDeviceInfo[] devices = null;
            try
            {
                SetBTButtons(false);
                bluehelp = new BluetoothHelper();
                await Task.Factory.StartNew(() => (devices = bluehelp.Search()));

                SetBTDevList(devices);
                bluetoothList.IsEnabled    = true;
                bluetoothconnect.IsEnabled = true;
                if (sqlitehelper.FileSource != null && bluehelp.IsConnected())
                {
                    runbtButton.IsEnabled = true;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            bluetoothupdate.IsEnabled = true;
        }
Exemplo n.º 3
0
 private async Task BTUpdate()
 {
     BluetoothDeviceInfo[] devices = null;
     try
     {
         SetBTButtons(false);
         bluehelp = new BluetoothHelper();
         await Task.Factory.StartNew(() => (devices = bluehelp.Search()));
         SetBTDevList(devices);
         bluetoothList.IsEnabled = true;
         bluetoothconnect.IsEnabled = true;
         if (sqlitehelper.FileSource != null && bluehelp.IsConnected())
             runbtButton.IsEnabled = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     bluetoothupdate.IsEnabled = true;
 }