Example #1
0
 internal string kontrola(string[] preklad, string verze, string produkt, bool full)
 {
     completo = preklad[5];
     try
     {
         if (Upgrade.Najdi(verze, produkt) == true)
         {
             if (full == true)
             {
                 dotaz quest = new dotaz();
                 quest.Title.Text  = preklad[1];
                 quest.label1.Text = preklad[2];
                 quest.Yes.Text    = preklad[3];
                 quest.No.Text     = preklad[4];
                 quest.ShowDialog();
                 if (quest.DialogResult == System.Windows.Forms.DialogResult.OK)
                 {
                     return("Stahuji!");
                 }
                 else
                 {
                     return("end");
                 }
             }
             else
             {
                 return("Stahuji!");
             }
         }
         else
         {
             if (full == true)
             {
                 hotovo comp = new hotovo();
                 comp.status.Text = preklad[0];
                 comp.ShowDialog();
                 return("end");
             }
             else
             {
                 return("end");
             }
         }
     }
     catch
     {
         return("unreadable");
     }
 }
Example #2
0
        public void c_DownloadFileCompleted(object sender, AsyncCompletedEventArgs e)
        {
            time.Stop();
            hotovo complete = new hotovo();

            complete.status.Text = completo;
            complete.ShowDialog();
            try
            {
                System.Diagnostics.Process.Start(Environment.CurrentDirectory + "\\upgrade.exe");
            }
            catch
            {
                spusti();
            }
        }