Ejemplo n.º 1
0
 private void XiaomieuPageToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (System.IO.File.Exists(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") & System.IO.File.Exists(@"C:\Program Files\Google\Chrome\Application\chrome.exe") == true)
     {
         BrowserCheck.StartBrowser("MicrosoftEdge.exe", "https://xiaomi.eu/community/");
     }
     else
     {
         BrowserCheck.StartBrowser("Chrome.exe", "https://xiaomi.eu/community/");
     }
 }
Ejemplo n.º 2
0
 private void XiaomiGlobalPageToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (System.IO.File.Exists(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") & System.IO.File.Exists(@"C:\Program Files\Google\Chrome\Application\chrome.exe") == true)
     {
         BrowserCheck.StartBrowser("MicrosoftEdge.exe", "https://c.mi.com/oc/miuidownload/detail?device=1700360");
     }
     else
     {
         BrowserCheck.StartBrowser("Chrome.exe", "https://c.mi.com/oc/miuidownload/detail?device=1700360");
     }
 }
Ejemplo n.º 3
0
 private void ToolStripMenuItem2_Click(object sender, EventArgs e)
 {
     if (System.IO.File.Exists(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") & System.IO.File.Exists(@"C:\Program Files\Google\Chrome\Application\chrome.exe") == true)
     {
         BrowserCheck.StartBrowser("MicrosoftEdge.exe", "https://xiaomifirmwareupdater.com/miui/");
     }
     else
     {
         BrowserCheck.StartBrowser("Chrome.exe", "https://xiaomifirmwareupdater.com/miui/");
     }
 }
Ejemplo n.º 4
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (System.IO.File.Exists(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") & System.IO.File.Exists(@"C:\Program Files\Google\Chrome\Application\chrome.exe") == true)
     {
         BrowserCheck.StartBrowser("MicrosoftEdge.exe", "https://github.com/Franco28/RedmiNote7ToolC-/blob/master/README.md#redmi-note-7-tool");
     }
     else
     {
         BrowserCheck.StartBrowser("Chrome.exe", "https://github.com/Franco28/RedmiNote7ToolC-/blob/master/README.md#redmi-note-7-tool");
     }
 }
Ejemplo n.º 5
0
 private void button2_Click(object sender, EventArgs e)
 {
     if (System.IO.File.Exists(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") & System.IO.File.Exists(@"C:\Program Files\Google\Chrome\Application\chrome.exe") == true)
     {
         BrowserCheck.StartBrowser("MicrosoftEdge.exe", "https://t.me/francom28");
     }
     else
     {
         BrowserCheck.StartBrowser("Chrome.exe", "https://t.me/francom28");
     }
 }
Ejemplo n.º 6
0
        private void unlockbootloader_Click(object sender, EventArgs e)
        {
            string[] paths  = Directory.GetFiles(@"C:\adb\MIUnlock", "miflash_unlock.exe");
            string[] paths2 = Directory.GetFiles(@"C:\adb\MIUnlock", "miflash_unlock-en-3.5.1128.45.zip");

            if (paths.Length > 0)
            {
                try
                {
                    var proc = new System.Diagnostics.Process();
                    proc = Process.Start(@"C:\adb\MIUnlock\miflash_unlock.exe", "");
                }
                catch (Exception)
                {
                    MessageBox.Show("Mi Unlock Closed...", "Mi Unlock", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                }
            }
            else
            {
                if (paths2.Length > 0)
                {
                    Unzip.Unzippy(@"MIUnlock\miflash_unlock-en-3.5.1128.45.zip", @"MIUnlock", true);

                    string[] zipfile = Directory.GetFiles(@"C:\adb\MIUnlock\", "*.zip");

                    foreach (string f in zipfile)
                    {
                        File.Delete(f);
                    }
                    MessageBox.Show("Mi Unlock extracted! Click again this option!", "Mi Unlock", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    visual_reLoad();
                }
                MessageBox.Show("Error on loading Mi Unlock, seems to be missing... Please download it!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            if (System.IO.File.Exists(@"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") & System.IO.File.Exists(@"C:\Program Files\Google\Chrome\Application\chrome.exe") == true)
            {
                BrowserCheck.StartBrowser("MicrosoftEdge.exe", "https://c.mi.com/thread-1857937-1-1.html");
            }
            else
            {
                BrowserCheck.StartBrowser("Chrome.exe", "https://c.mi.com/thread-1857937-1-1.html");
            }
        }