private void MainForm_Load(object sender, EventArgs e) { try { backgroundWorker1.RunWorkerAsync(); } catch(Exception ex) { MessageBox.Show("An error has occured! A log file has been placed in the Logs folder within the Data folder. Please send the file to WindyCityRockr or post the file in the toolkit thread.", "Errors Suck!", MessageBoxButtons.OK, MessageBoxIcon.Error); string fileDateTime = DateTime.Now.ToString("MMddyyyy") + "_" + DateTime.Now.ToString("HHmmss"); System.IO.StreamWriter file = new System.IO.StreamWriter("./Data/Logs/" + fileDateTime.ToString() + ".txt"); file.WriteLine(ex); file.Close(); } try { if (File.Exists("./MetroFramework.Fonts.dll")) { } else { MessageBox.Show("You are missing important design files required to run the toolkit! Please redownload the toolkit. The toolkit will now exit.", "Missing Files", MessageBoxButtons.OK, MessageBoxIcon.Error); } } catch(Exception ex) { MessageBox.Show("An error has occured! A log file has been placed in the Logs folder within the Data folder. Please send the file to WindyCityRockr or post the file in the toolkit thread.", "Errors Suck!", MessageBoxButtons.OK, MessageBoxIcon.Error); string fileDateTime = DateTime.Now.ToString("MMddyyyy") + "_" + DateTime.Now.ToString("HHmmss"); System.IO.StreamWriter file = new System.IO.StreamWriter("./Data/Logs/" + fileDateTime.ToString() + ".txt"); file.WriteLine(ex); file.Close(); } try { if (Directory.Exists("C:/Program Files (x86)/ClockworkMod/Universal Adb Driver")) { } else { if (Directory.Exists("C:/Program Files/ClockworkMod/Universal Adb Driver")) { } else { DialogResult dialogResult2 = MessageBox.Show("You are missing some ADB Drivers! They are required for your phone to connect properly with the computer. Would you like to install them now?", "ADB Drivers", MessageBoxButtons.YesNo, MessageBoxIcon.Information); if (dialogResult2 == DialogResult.Yes) { var process = Process.Start(Application.StartupPath + "/Data/Installers/ADB.msi"); process.WaitForExit(); } } } } catch(Exception ex) { MessageBox.Show("An error has occured! A log file has been placed in the Logs folder within the Data folder. Please send the file to WindyCityRockr or post the file in the toolkit thread.", "Errors Suck!", MessageBoxButtons.OK, MessageBoxIcon.Error); string fileDateTime = DateTime.Now.ToString("MMddyyyy") + "_" + DateTime.Now.ToString("HHmmss"); System.IO.StreamWriter file = new System.IO.StreamWriter("./Data/Logs/" + fileDateTime.ToString() + ".txt"); file.WriteLine(ex); file.Close(); } try { if (File.Exists("C:/Windows/adb.exe")) { if (Directory.Exists("./Data")) { } else { MessageBox.Show("The Data folder is missing! Many or all functions may not work correctly. Please redownload the toolkit if this issue persists.", "Missing Files", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } else { try { DialogResult dialogResult = MessageBox.Show("It seems you are missing some important files that are required for this program to run. Would you like to download and install them now?", "Missing Files", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (dialogResult == DialogResult.Yes) { WebClient Client = new WebClient(); Client.DownloadFile("http://urgero.org/adbgui/adb.exe ", "./Data/adb.exe"); Client.DownloadFile("http://urgero.org/adbgui/AdbWinApi.dll", "./Data/AdbWinApi.dll"); Client.DownloadFile("http://urgero.org/adbgui/AdbWinUsbApi.dll", "./Data/AdbWinUsbApi.dll"); Client.DownloadFile("http://urgero.org/adbgui/fastboot.exe", "./Data/fastboot.exe"); try { File.Copy("./Data/adb.exe", "C:/Windows/adb.exe"); File.Delete("./Data/adb.exe"); File.Copy("./Data/AdbWinApi.dll", "C:/Windows/AdbWinApi.dll"); File.Delete("./Data/AdbWinApi.dll"); File.Copy("./Data/AdbWinUsbApi.dll", "C:/Windows/AdbWinUsbApi.dll"); File.Delete("./Data/AdbWinUsbApi.dll"); File.Copy("./Data/fastboot.exe", "C:/Windows/fastboot.exe"); File.Delete("./Data/fastboot.exe"); } catch (Exception) { MessageBox.Show("Could not copy files to the system directory! Please run the toolkit as Administrator once to ensure they copy correctly.", "Copying Files", MessageBoxButtons.OK, MessageBoxIcon.Warning); Application.Exit(); } } } catch (Exception) { MessageBox.Show("Please run this program once as Administrator to allow the download of the necessary files! Also, please ensure that you are connected to the internet.", "Missing Files", MessageBoxButtons.OK, MessageBoxIcon.Information); Application.Exit(); } } } catch(Exception ex) { MessageBox.Show("An error has occured! A log file has been placed in the Logs folder within the Data folder. Please send the file to WindyCityRockr or post the file in the toolkit thread.", "Errors Suck!", MessageBoxButtons.OK, MessageBoxIcon.Error); string fileDateTime = DateTime.Now.ToString("MMddyyyy") + "_" + DateTime.Now.ToString("HHmmss"); System.IO.StreamWriter file = new System.IO.StreamWriter("./Data/Logs/" + fileDateTime.ToString() + ".txt"); file.WriteLine(ex); file.Close(); } try { using (StreamReader sr = new StreamReader("./Data/Color.ini")) { String line = sr.ReadToEnd(); GetVarAll getVarAll = new GetVarAll(); if (line == "Black") { mainTabPage.Style = MetroFramework.MetroColorStyle.Black; customADBTextbox.Style = MetroFramework.MetroColorStyle.Black; informationTextbox.Style = MetroFramework.MetroColorStyle.Black; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Black; twitterTile.Style = MetroFramework.MetroColorStyle.Black; pmTile.Style = MetroFramework.MetroColorStyle.Black; emailTile.Style = MetroFramework.MetroColorStyle.Black; donateTile.Style = MetroFramework.MetroColorStyle.Black; winDroidLabel.Style = MetroFramework.MetroColorStyle.Black; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Black; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Black; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Black; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Black; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Black; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Black; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Black; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Black; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Black; carrierSpinner.Style = MetroFramework.MetroColorStyle.Black; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Black; refreshSpinner.Style = MetroFramework.MetroColorStyle.Black; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Black; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Black; colorChoiceComboBox.Text = "Black"; } if (line == "Silver") { mainTabPage.Style = MetroFramework.MetroColorStyle.Silver; customADBTextbox.Style = MetroFramework.MetroColorStyle.Silver; informationTextbox.Style = MetroFramework.MetroColorStyle.Silver; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Silver; twitterTile.Style = MetroFramework.MetroColorStyle.Silver; pmTile.Style = MetroFramework.MetroColorStyle.Silver; emailTile.Style = MetroFramework.MetroColorStyle.Silver; donateTile.Style = MetroFramework.MetroColorStyle.Silver; winDroidLabel.Style = MetroFramework.MetroColorStyle.Silver; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Silver; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Silver; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Silver; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Silver; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Silver; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Silver; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Silver; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Silver; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Silver; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Silver; carrierSpinner.Style = MetroFramework.MetroColorStyle.Silver; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Silver; refreshSpinner.Style = MetroFramework.MetroColorStyle.Silver; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Silver; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Silver; colorChoiceComboBox.Text = "Silver"; } if (line == "Blue") { mainTabPage.Style = MetroFramework.MetroColorStyle.Blue; customADBTextbox.Style = MetroFramework.MetroColorStyle.Blue; informationTextbox.Style = MetroFramework.MetroColorStyle.Blue; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Blue; twitterTile.Style = MetroFramework.MetroColorStyle.Blue; pmTile.Style = MetroFramework.MetroColorStyle.Blue; emailTile.Style = MetroFramework.MetroColorStyle.Blue; donateTile.Style = MetroFramework.MetroColorStyle.Blue; winDroidLabel.Style = MetroFramework.MetroColorStyle.Blue; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Blue; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Blue; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Blue; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Blue; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Blue; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Blue; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Blue; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Blue; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Blue; carrierSpinner.Style = MetroFramework.MetroColorStyle.Blue; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Blue; refreshSpinner.Style = MetroFramework.MetroColorStyle.Blue; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Blue; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Blue; colorChoiceComboBox.Text = "Blue"; } if (line == "Green") { mainTabPage.Style = MetroFramework.MetroColorStyle.Green; customADBTextbox.Style = MetroFramework.MetroColorStyle.Green; informationTextbox.Style = MetroFramework.MetroColorStyle.Green; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Green; twitterTile.Style = MetroFramework.MetroColorStyle.Green; pmTile.Style = MetroFramework.MetroColorStyle.Green; emailTile.Style = MetroFramework.MetroColorStyle.Green; donateTile.Style = MetroFramework.MetroColorStyle.Green; winDroidLabel.Style = MetroFramework.MetroColorStyle.Green; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Green; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Green; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Green; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Green; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Green; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Green; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Green; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Green; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Green; carrierSpinner.Style = MetroFramework.MetroColorStyle.Green; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Green; refreshSpinner.Style = MetroFramework.MetroColorStyle.Green; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Green; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Green; colorChoiceComboBox.Text = "Green"; } if (line == "Lime") { mainTabPage.Style = MetroFramework.MetroColorStyle.Lime; customADBTextbox.Style = MetroFramework.MetroColorStyle.Lime; informationTextbox.Style = MetroFramework.MetroColorStyle.Lime; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Lime; twitterTile.Style = MetroFramework.MetroColorStyle.Lime; pmTile.Style = MetroFramework.MetroColorStyle.Lime; emailTile.Style = MetroFramework.MetroColorStyle.Lime; donateTile.Style = MetroFramework.MetroColorStyle.Lime; winDroidLabel.Style = MetroFramework.MetroColorStyle.Lime; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Lime; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Lime; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Lime; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Lime; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Lime; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Lime; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Lime; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Lime; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Lime; carrierSpinner.Style = MetroFramework.MetroColorStyle.Lime; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Lime; refreshSpinner.Style = MetroFramework.MetroColorStyle.Lime; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Lime; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Lime; colorChoiceComboBox.Text = "Lime"; } if (line == "Teal") { mainTabPage.Style = MetroFramework.MetroColorStyle.Teal; customADBTextbox.Style = MetroFramework.MetroColorStyle.Teal; informationTextbox.Style = MetroFramework.MetroColorStyle.Teal; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Teal; twitterTile.Style = MetroFramework.MetroColorStyle.Teal; pmTile.Style = MetroFramework.MetroColorStyle.Teal; emailTile.Style = MetroFramework.MetroColorStyle.Teal; donateTile.Style = MetroFramework.MetroColorStyle.Teal; winDroidLabel.Style = MetroFramework.MetroColorStyle.Teal; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Teal; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Teal; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Teal; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Teal; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Teal; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Teal; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Teal; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Teal; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Teal; carrierSpinner.Style = MetroFramework.MetroColorStyle.Teal; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Teal; refreshSpinner.Style = MetroFramework.MetroColorStyle.Teal; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Teal; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Teal ; colorChoiceComboBox.Text = "Teal"; } if (line == "Orange") { mainTabPage.Style = MetroFramework.MetroColorStyle.Orange; customADBTextbox.Style = MetroFramework.MetroColorStyle.Orange; informationTextbox.Style = MetroFramework.MetroColorStyle.Orange; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Orange; twitterTile.Style = MetroFramework.MetroColorStyle.Orange; pmTile.Style = MetroFramework.MetroColorStyle.Orange; emailTile.Style = MetroFramework.MetroColorStyle.Orange; donateTile.Style = MetroFramework.MetroColorStyle.Orange; winDroidLabel.Style = MetroFramework.MetroColorStyle.Orange; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Orange; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Orange; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Orange; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Orange; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Orange; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Orange; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Orange; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Orange; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Orange; carrierSpinner.Style = MetroFramework.MetroColorStyle.Orange; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Orange; refreshSpinner.Style = MetroFramework.MetroColorStyle.Orange; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Orange; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Orange; colorChoiceComboBox.Text = "Orange"; } if (line == "Brown") { mainTabPage.Style = MetroFramework.MetroColorStyle.Brown; customADBTextbox.Style = MetroFramework.MetroColorStyle.Brown; informationTextbox.Style = MetroFramework.MetroColorStyle.Brown; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Brown; twitterTile.Style = MetroFramework.MetroColorStyle.Brown; pmTile.Style = MetroFramework.MetroColorStyle.Brown; emailTile.Style = MetroFramework.MetroColorStyle.Brown; donateTile.Style = MetroFramework.MetroColorStyle.Brown; winDroidLabel.Style = MetroFramework.MetroColorStyle.Brown; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Brown; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Brown; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Brown; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Brown; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Brown; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Brown; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Brown; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Brown; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Brown; carrierSpinner.Style = MetroFramework.MetroColorStyle.Brown; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Brown; refreshSpinner.Style = MetroFramework.MetroColorStyle.Brown; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Brown; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Brown; colorChoiceComboBox.Text = "Brown"; } if (line == "Pink") { mainTabPage.Style = MetroFramework.MetroColorStyle.Pink; customADBTextbox.Style = MetroFramework.MetroColorStyle.Pink; informationTextbox.Style = MetroFramework.MetroColorStyle.Pink; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Pink; twitterTile.Style = MetroFramework.MetroColorStyle.Pink; pmTile.Style = MetroFramework.MetroColorStyle.Pink; emailTile.Style = MetroFramework.MetroColorStyle.Pink; donateTile.Style = MetroFramework.MetroColorStyle.Pink; winDroidLabel.Style = MetroFramework.MetroColorStyle.Pink; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Pink; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Pink; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Pink; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Pink; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Pink; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Pink; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Pink; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Pink; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Pink; carrierSpinner.Style = MetroFramework.MetroColorStyle.Pink; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Pink; refreshSpinner.Style = MetroFramework.MetroColorStyle.Pink; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Pink; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Pink; colorChoiceComboBox.Text = "Pink"; } if (line == "Magenta") { mainTabPage.Style = MetroFramework.MetroColorStyle.Magenta; customADBTextbox.Style = MetroFramework.MetroColorStyle.Magenta; informationTextbox.Style = MetroFramework.MetroColorStyle.Magenta; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Magenta; twitterTile.Style = MetroFramework.MetroColorStyle.Magenta; pmTile.Style = MetroFramework.MetroColorStyle.Magenta; emailTile.Style = MetroFramework.MetroColorStyle.Magenta; donateTile.Style = MetroFramework.MetroColorStyle.Magenta; winDroidLabel.Style = MetroFramework.MetroColorStyle.Magenta; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Magenta; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Magenta; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Magenta; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Magenta; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Magenta; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Magenta; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Magenta; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Magenta; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Magenta; carrierSpinner.Style = MetroFramework.MetroColorStyle.Magenta; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Magenta; refreshSpinner.Style = MetroFramework.MetroColorStyle.Magenta; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Magenta; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Magenta; colorChoiceComboBox.Text = "Magenta"; } if (line == "Purple") { mainTabPage.Style = MetroFramework.MetroColorStyle.Purple; customADBTextbox.Style = MetroFramework.MetroColorStyle.Purple; informationTextbox.Style = MetroFramework.MetroColorStyle.Purple; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Purple; twitterTile.Style = MetroFramework.MetroColorStyle.Purple; pmTile.Style = MetroFramework.MetroColorStyle.Purple; emailTile.Style = MetroFramework.MetroColorStyle.Purple; donateTile.Style = MetroFramework.MetroColorStyle.Purple; winDroidLabel.Style = MetroFramework.MetroColorStyle.Purple; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Purple; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Purple; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Purple; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Purple; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Purple; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Purple; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Purple; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Purple; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Purple; carrierSpinner.Style = MetroFramework.MetroColorStyle.Purple; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Purple; refreshSpinner.Style = MetroFramework.MetroColorStyle.Purple; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Purple; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Purple; colorChoiceComboBox.Text = "Purple"; } if (line == "Red") { mainTabPage.Style = MetroFramework.MetroColorStyle.Red; customADBTextbox.Style = MetroFramework.MetroColorStyle.Red; informationTextbox.Style = MetroFramework.MetroColorStyle.Red; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Red; twitterTile.Style = MetroFramework.MetroColorStyle.Red; pmTile.Style = MetroFramework.MetroColorStyle.Red; emailTile.Style = MetroFramework.MetroColorStyle.Red; donateTile.Style = MetroFramework.MetroColorStyle.Red; winDroidLabel.Style = MetroFramework.MetroColorStyle.Red; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Red; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Red; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Red; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Red; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Red; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Red; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Red; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Red; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Red; carrierSpinner.Style = MetroFramework.MetroColorStyle.Red; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Red; refreshSpinner.Style = MetroFramework.MetroColorStyle.Red; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Red; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Red; colorChoiceComboBox.Text = "Red"; } if (line == "Yellow") { mainTabPage.Style = MetroFramework.MetroColorStyle.Yellow; customADBTextbox.Style = MetroFramework.MetroColorStyle.Yellow; informationTextbox.Style = MetroFramework.MetroColorStyle.Yellow; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Yellow; twitterTile.Style = MetroFramework.MetroColorStyle.Yellow; pmTile.Style = MetroFramework.MetroColorStyle.Yellow; emailTile.Style = MetroFramework.MetroColorStyle.Yellow; donateTile.Style = MetroFramework.MetroColorStyle.Yellow; winDroidLabel.Style = MetroFramework.MetroColorStyle.Yellow; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Yellow; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Yellow; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Yellow; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Yellow; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Yellow; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Yellow; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Yellow; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Yellow; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Yellow; carrierSpinner.Style = MetroFramework.MetroColorStyle.Yellow; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Yellow; refreshSpinner.Style = MetroFramework.MetroColorStyle.Yellow; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Yellow; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Yellow; colorChoiceComboBox.Text = "Yellow"; } } } catch (Exception ex) { MessageBox.Show("An error has occured! A log file has been placed in the Logs folder within the Data folder. Please send the file to WindyCityRockr or post the file in the toolkit thread.", "Errors Suck!", MessageBoxButtons.OK, MessageBoxIcon.Error); string fileDateTime = DateTime.Now.ToString("MMddyyyy") + "_" + DateTime.Now.ToString("HHmmss"); System.IO.StreamWriter file = new System.IO.StreamWriter("./Data/Logs/" + fileDateTime.ToString() + ".txt"); file.WriteLine(ex); file.Close(); } }
private void colorChoiceComboBox_SelectionChangeCommitted(object sender, EventArgs e) { try { GetVarAll getVarAll = new GetVarAll(); if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Black")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Black; customADBTextbox.Style = MetroFramework.MetroColorStyle.Black; informationTextbox.Style = MetroFramework.MetroColorStyle.Black; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Black; twitterTile.Style = MetroFramework.MetroColorStyle.Black; pmTile.Style = MetroFramework.MetroColorStyle.Black; emailTile.Style = MetroFramework.MetroColorStyle.Black; donateTile.Style = MetroFramework.MetroColorStyle.Black; winDroidLabel.Style = MetroFramework.MetroColorStyle.Black; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Black; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Black; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Black; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Black; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Black; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Black; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Black; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Black; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Black; carrierSpinner.Style = MetroFramework.MetroColorStyle.Black; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Black; refreshSpinner.Style = MetroFramework.MetroColorStyle.Black; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Black; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Black; File.WriteAllText("./Data/Color.ini", "Black"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Silver")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Silver; customADBTextbox.Style = MetroFramework.MetroColorStyle.Silver; informationTextbox.Style = MetroFramework.MetroColorStyle.Silver; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Silver; twitterTile.Style = MetroFramework.MetroColorStyle.Silver; pmTile.Style = MetroFramework.MetroColorStyle.Silver; emailTile.Style = MetroFramework.MetroColorStyle.Silver; donateTile.Style = MetroFramework.MetroColorStyle.Silver; winDroidLabel.Style = MetroFramework.MetroColorStyle.Silver; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Silver; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Silver; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Silver; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Silver; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Silver; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Silver; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Blue; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Blue; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Silver; carrierSpinner.Style = MetroFramework.MetroColorStyle.Silver; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Silver; refreshSpinner.Style = MetroFramework.MetroColorStyle.Silver; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Silver; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Silver; File.WriteAllText("./Data/Color.ini", "Silver"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Blue")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Blue; customADBTextbox.Style = MetroFramework.MetroColorStyle.Blue; informationTextbox.Style = MetroFramework.MetroColorStyle.Blue; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Blue; twitterTile.Style = MetroFramework.MetroColorStyle.Blue; pmTile.Style = MetroFramework.MetroColorStyle.Blue; emailTile.Style = MetroFramework.MetroColorStyle.Blue; donateTile.Style = MetroFramework.MetroColorStyle.Blue; winDroidLabel.Style = MetroFramework.MetroColorStyle.Blue; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Blue; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Blue; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Blue; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Blue; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Blue; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Blue; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Blue; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Blue; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Blue; carrierSpinner.Style = MetroFramework.MetroColorStyle.Blue; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Blue; refreshSpinner.Style = MetroFramework.MetroColorStyle.Blue; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Blue; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Blue; File.WriteAllText("./Data/Color.ini", "Blue"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Green")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Green; customADBTextbox.Style = MetroFramework.MetroColorStyle.Green; informationTextbox.Style = MetroFramework.MetroColorStyle.Green; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Green; twitterTile.Style = MetroFramework.MetroColorStyle.Green; pmTile.Style = MetroFramework.MetroColorStyle.Green; emailTile.Style = MetroFramework.MetroColorStyle.Green; donateTile.Style = MetroFramework.MetroColorStyle.Green; winDroidLabel.Style = MetroFramework.MetroColorStyle.Green; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Green; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Green; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Green; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Green; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Green; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Green; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Green; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Green; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Green; carrierSpinner.Style = MetroFramework.MetroColorStyle.Green; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Green; refreshSpinner.Style = MetroFramework.MetroColorStyle.Green; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Green; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Green; File.WriteAllText("./Data/Color.ini", "Green"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Lime")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Lime; customADBTextbox.Style = MetroFramework.MetroColorStyle.Lime; informationTextbox.Style = MetroFramework.MetroColorStyle.Lime; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Lime; twitterTile.Style = MetroFramework.MetroColorStyle.Lime; pmTile.Style = MetroFramework.MetroColorStyle.Lime; emailTile.Style = MetroFramework.MetroColorStyle.Lime; donateTile.Style = MetroFramework.MetroColorStyle.Lime; winDroidLabel.Style = MetroFramework.MetroColorStyle.Lime; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Lime; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Lime; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Lime; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Lime; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Lime; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Lime; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Lime; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Lime; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Lime; carrierSpinner.Style = MetroFramework.MetroColorStyle.Lime; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Lime; refreshSpinner.Style = MetroFramework.MetroColorStyle.Lime; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Lime; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Lime; File.WriteAllText("./Data/Color.ini", "Lime"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Teal")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Teal; customADBTextbox.Style = MetroFramework.MetroColorStyle.Teal; informationTextbox.Style = MetroFramework.MetroColorStyle.Teal; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Teal; twitterTile.Style = MetroFramework.MetroColorStyle.Teal; pmTile.Style = MetroFramework.MetroColorStyle.Teal; emailTile.Style = MetroFramework.MetroColorStyle.Teal; donateTile.Style = MetroFramework.MetroColorStyle.Teal; winDroidLabel.Style = MetroFramework.MetroColorStyle.Teal; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Teal; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Teal; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Teal; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Teal; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Teal; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Teal; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Teal; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Teal; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Teal; carrierSpinner.Style = MetroFramework.MetroColorStyle.Teal; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Teal; refreshSpinner.Style = MetroFramework.MetroColorStyle.Teal; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Teal; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Teal; File.WriteAllText("./Data/Color.ini", "Teal"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Orange")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Orange; customADBTextbox.Style = MetroFramework.MetroColorStyle.Orange; informationTextbox.Style = MetroFramework.MetroColorStyle.Orange; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Orange; twitterTile.Style = MetroFramework.MetroColorStyle.Orange; pmTile.Style = MetroFramework.MetroColorStyle.Orange; emailTile.Style = MetroFramework.MetroColorStyle.Orange; donateTile.Style = MetroFramework.MetroColorStyle.Orange; winDroidLabel.Style = MetroFramework.MetroColorStyle.Orange; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Orange; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Orange; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Orange; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Orange; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Orange; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Orange; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Orange; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Orange; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Orange; carrierSpinner.Style = MetroFramework.MetroColorStyle.Orange; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Orange; refreshSpinner.Style = MetroFramework.MetroColorStyle.Orange; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Orange; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Orange; File.WriteAllText("./Data/Color.ini", "Orange"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Brown")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Brown; customADBTextbox.Style = MetroFramework.MetroColorStyle.Brown; informationTextbox.Style = MetroFramework.MetroColorStyle.Brown; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Brown; twitterTile.Style = MetroFramework.MetroColorStyle.Brown; pmTile.Style = MetroFramework.MetroColorStyle.Brown; emailTile.Style = MetroFramework.MetroColorStyle.Brown; donateTile.Style = MetroFramework.MetroColorStyle.Brown; winDroidLabel.Style = MetroFramework.MetroColorStyle.Brown; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Brown; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Brown; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Brown; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Brown; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Brown; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Brown; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Brown; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Brown; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Brown; carrierSpinner.Style = MetroFramework.MetroColorStyle.Brown; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Brown; refreshSpinner.Style = MetroFramework.MetroColorStyle.Brown; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Brown; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Brown; File.WriteAllText("./Data/Color.ini", "Brown"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Pink")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Pink; customADBTextbox.Style = MetroFramework.MetroColorStyle.Pink; informationTextbox.Style = MetroFramework.MetroColorStyle.Pink; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Pink; twitterTile.Style = MetroFramework.MetroColorStyle.Pink; pmTile.Style = MetroFramework.MetroColorStyle.Pink; emailTile.Style = MetroFramework.MetroColorStyle.Pink; donateTile.Style = MetroFramework.MetroColorStyle.Pink; winDroidLabel.Style = MetroFramework.MetroColorStyle.Pink; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Pink; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Pink; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Pink; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Pink; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Pink; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Pink; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Pink; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Pink; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Pink; carrierSpinner.Style = MetroFramework.MetroColorStyle.Pink; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Pink; refreshSpinner.Style = MetroFramework.MetroColorStyle.Pink; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Pink; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Pink; File.WriteAllText("./Data/Color.ini", "Pink"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Magenta")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Magenta; customADBTextbox.Style = MetroFramework.MetroColorStyle.Magenta; informationTextbox.Style = MetroFramework.MetroColorStyle.Magenta; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Magenta; twitterTile.Style = MetroFramework.MetroColorStyle.Magenta; pmTile.Style = MetroFramework.MetroColorStyle.Magenta; emailTile.Style = MetroFramework.MetroColorStyle.Magenta; donateTile.Style = MetroFramework.MetroColorStyle.Magenta; winDroidLabel.Style = MetroFramework.MetroColorStyle.Magenta; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Magenta; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Magenta; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Magenta; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Magenta; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Magenta; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Magenta; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Magenta; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Magenta; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Magenta; carrierSpinner.Style = MetroFramework.MetroColorStyle.Magenta; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Magenta; refreshSpinner.Style = MetroFramework.MetroColorStyle.Magenta; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Magenta; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Magenta; File.WriteAllText("./Data/Color.ini", "Magenta"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Purple")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Purple; customADBTextbox.Style = MetroFramework.MetroColorStyle.Purple; informationTextbox.Style = MetroFramework.MetroColorStyle.Purple; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Purple; twitterTile.Style = MetroFramework.MetroColorStyle.Purple; pmTile.Style = MetroFramework.MetroColorStyle.Purple; emailTile.Style = MetroFramework.MetroColorStyle.Purple; donateTile.Style = MetroFramework.MetroColorStyle.Purple; winDroidLabel.Style = MetroFramework.MetroColorStyle.Purple; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Purple; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Purple; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Purple; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Purple; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Purple; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Purple; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Purple; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Purple; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Purple; carrierSpinner.Style = MetroFramework.MetroColorStyle.Purple; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Purple; refreshSpinner.Style = MetroFramework.MetroColorStyle.Purple; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Purple; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Purple; File.WriteAllText("./Data/Color.ini", "Purple"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Red")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Red; customADBTextbox.Style = MetroFramework.MetroColorStyle.Red; informationTextbox.Style = MetroFramework.MetroColorStyle.Red; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Red; twitterTile.Style = MetroFramework.MetroColorStyle.Red; pmTile.Style = MetroFramework.MetroColorStyle.Red; emailTile.Style = MetroFramework.MetroColorStyle.Red; donateTile.Style = MetroFramework.MetroColorStyle.Red; winDroidLabel.Style = MetroFramework.MetroColorStyle.Red; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Red; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Red; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Red; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Red; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Red; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Red; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Red; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Red; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Red; carrierSpinner.Style = MetroFramework.MetroColorStyle.Red; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Red; refreshSpinner.Style = MetroFramework.MetroColorStyle.Red; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Red; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Red; File.WriteAllText("./Data/Color.ini", "Red"); } if (colorChoiceComboBox.SelectedIndex == colorChoiceComboBox.Items.IndexOf("Yellow")) { mainTabPage.Style = MetroFramework.MetroColorStyle.Yellow; customADBTextbox.Style = MetroFramework.MetroColorStyle.Yellow; informationTextbox.Style = MetroFramework.MetroColorStyle.Yellow; customFastbootTextbox.Style = MetroFramework.MetroColorStyle.Yellow; twitterTile.Style = MetroFramework.MetroColorStyle.Yellow; pmTile.Style = MetroFramework.MetroColorStyle.Yellow; emailTile.Style = MetroFramework.MetroColorStyle.Yellow; donateTile.Style = MetroFramework.MetroColorStyle.Yellow; winDroidLabel.Style = MetroFramework.MetroColorStyle.Yellow; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Yellow; deviceNameSpinner.Style = MetroFramework.MetroColorStyle.Yellow; deviceStateSpinner.Style = MetroFramework.MetroColorStyle.Yellow; androidVersionSpinner.Style = MetroFramework.MetroColorStyle.Yellow; senseVersionSpinner.Style = MetroFramework.MetroColorStyle.Yellow; batteryLevelSpinner.Style = MetroFramework.MetroColorStyle.Yellow; serialNumberSpinner.Style = MetroFramework.MetroColorStyle.Yellow; suVersionSpinner2.Style = MetroFramework.MetroColorStyle.Yellow; busyboxVersionSpinner.Style = MetroFramework.MetroColorStyle.Yellow; carrierSpinner.Style = MetroFramework.MetroColorStyle.Yellow; buildPropSpinner.Style = MetroFramework.MetroColorStyle.Yellow; refreshSpinner.Style = MetroFramework.MetroColorStyle.Yellow; getVarAll.getVarAllTextbox.Style = MetroFramework.MetroColorStyle.Yellow; colorChoiceComboBox.Style = MetroFramework.MetroColorStyle.Yellow; File.WriteAllText("./Data/Color.ini", "Yellow"); } } catch (Exception ex) { MessageBox.Show("An error has occured! A log file has been placed in the Logs folder within the Data folder. Please send the file to WindyCityRockr or post the file in the toolkit thread.", "Errors Suck!", MessageBoxButtons.OK, MessageBoxIcon.Error); string fileDateTime = DateTime.Now.ToString("MMddyyyy") + "_" + DateTime.Now.ToString("HHmmss"); System.IO.StreamWriter file = new System.IO.StreamWriter("./Data/Logs/" + fileDateTime.ToString() + ".txt"); file.WriteLine(ex); file.Close(); } }
private void getVarAll_Click(object sender, EventArgs e) { try { String line; string command = "/c fastboot getvar all"; ProcessStartInfo procStartInfo = new ProcessStartInfo("CMD", command); GetVarAll getVarAll = new GetVarAll(); Process proc = new Process(); proc.StartInfo = procStartInfo; proc.StartInfo.UseShellExecute = false; proc.StartInfo.RedirectStandardOutput = true; proc.StartInfo.RedirectStandardError = true; proc.Start(); proc.WaitForExit(); StreamReader sr = proc.StandardError; line = sr.ReadToEnd(); getVarAll.getVarAllTextbox.Text = line; getVarAll.Show(); } catch (Exception ex) { MessageBox.Show("An error has occured! A log file has been placed in the Logs folder within the Data folder. Please send the file to WindyCityRockr or post the file in the toolkit thread.", "Errors Suck!", MessageBoxButtons.OK, MessageBoxIcon.Error); string fileDateTime = DateTime.Now.ToString("MMddyyyy") + "_" + DateTime.Now.ToString("HHmmss"); System.IO.StreamWriter file = new System.IO.StreamWriter("./Data/Logs/" + fileDateTime.ToString() + ".txt"); file.WriteLine(ex); file.Close(); } }