Пример #1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            this.adbPath = Settings.GetPath();

            if (string.IsNullOrEmpty(adbPath) || !System.IO.File.Exists(adbPath))
            {
                frmAdbFinder faf = new frmAdbFinder();
                if (faf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    this.adbPath = faf.AdbPath;
                    Settings.SavePath(faf.AdbPath);
                }
                else
                {
                    MessageBox.Show(this, "Could not find adb.exe.  Please install the SDK and Emulator and try again!  Alternatively you can set the path manually adb-path.txt", "Failed to find adb.exe", MessageBoxButtons.OK);

                    this.Close();
                    Application.Exit();
                }
            }
        }
Пример #2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            this.toolStripComboBoxFilterType.Text  = "Simple";

            this.adbPath = Settings.GetPath();

            if (string.IsNullOrEmpty(adbPath) || !System.IO.File.Exists(adbPath))
            {
                frmAdbFinder faf = new frmAdbFinder();
                if (faf.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                {
                    this.adbPath = faf.AdbPath;
                    Settings.SavePath(faf.AdbPath);
                }
                else
                {
                    MessageBox.Show(this, "Could not find adb.exe.  Please install the SDK and Emulator and try again!  Alternatively you can set the path manually adb-path.txt", "Failed to find adb.exe", MessageBoxButtons.OK);

                    this.Close();
                    Application.Exit();
                }
            }
        }