private void button33_Click(object sender, EventArgs e) { StreamWriter sw = new StreamWriter("WorkDIR\\Temp.fat"); for (int i = 0; i < checkedListBox1.Items.Count; i++) { sw.WriteLine(checkedListBox1.Items[i]); } sw.Close(); string R = null; if (File.Exists("WorkDIR\\Temp.fat") == true) R = "WorkDIR\\Temp.fat"; else return; Editor Ed = new Editor(R); Ed.Owner = this; Ed.Show(); }
private void button10_Click(object sender, EventArgs e) { string R = null; if (File.Exists(@"WorkDIR\" + comboBox1.SelectedItem + @"\ROMtoPort\META-INF\com\google\android\updater-script") == true) R = @"WorkDIR\" + comboBox1.SelectedItem + @"\ROMtoPort\META-INF\com\google\android\updater-script"; else return; Editor Ed = new Editor(R); Ed.Show(); }
private void button25_Click(object sender, EventArgs e) { string R = null; if (File.Exists(Directory.GetCurrentDirectory() + "\\Utilits\\prop") == false) { if (Directory.Exists(Directory.GetCurrentDirectory() + "\\Utilits") == false) Directory.CreateDirectory(Directory.GetCurrentDirectory() + "\\Utilits"); string Patch = Directory.GetCurrentDirectory() + "\\Bin\\trace.bat"; StreamWriter BatFile = new StreamWriter(Patch, false, Encoding.GetEncoding(866)); BatFile.WriteLine("@echo off"); BatFile.WriteLine("echo Starting ADB..."); BatFile.WriteLine("cd /d \"" + Directory.GetCurrentDirectory() + "\\Bin"); BatFile.WriteLine("adb start-server"); BatFile.WriteLine("echo connect phone..."); BatFile.WriteLine("rem adb wait-for-device"); BatFile.WriteLine("echo Gett files from phone..."); BatFile.WriteLine("adb pull /system/build.prop " + "\"" + Directory.GetCurrentDirectory() + "\\Utilits\\prop\""); BatFile.Close(); Process win = new Process(); win.StartInfo.ErrorDialog = true; win.StartInfo.FileName = Directory.GetCurrentDirectory() + "\\Bin\\trace.bat"; win.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; this.Cursor = Cursors.WaitCursor; win.Start(); win.WaitForExit(); this.Cursor = Cursors.Default; File.Delete("Bin\\trace.bat"); Process winс = new Process(); winс.StartInfo.FileName = "taskkill"; winс.StartInfo.Arguments = "/F /IM adb.exe"; winс.StartInfo.WindowStyle = ProcessWindowStyle.Hidden; this.Cursor = Cursors.WaitCursor; winс.Start(); winс.WaitForExit(); this.Cursor = Cursors.Default; } if (File.Exists("Utilits\\prop") == true) { R = Directory.GetCurrentDirectory() + "\\Utilits\\prop"; Editor f2 = new Editor(R); f2.Owner = this; f2.Show(); } }
private void button12_Click(object sender, EventArgs e) { string R = null; if (File.Exists(@"WorkDIR\" + comboBox1.SelectedItem + @"\ROMtoPort\system\build.prop") == true) R = @"WorkDIR\" + comboBox1.SelectedItem + @"\ROMtoPort\system\build.prop"; else return; Editor Ed = new Editor(R); Ed.Show(); }