Ejemplo n.º 1
0
        private void CheckVersion()
        {
            try
            {
                if (TempFilesWorker.CheckVersion())
                {
                    float    code      = 0;
                    float    important = 0;
                    string   versiont  = "";
                    DateTime date;

                    WebWorker.GetVersionInfo(out code, out important, out versiont, out date);

                    if (code > Good_Teacher.MainWindow.VersionCode)
                    {
                        Window_CheckForUpdates checkForUpdates = new Window_CheckForUpdates(code, important, versiont, date);
                        checkForUpdates.Owner = this;
                        checkForUpdates.ShowDialog();
                    }


                    TempFilesWorker.WriteCurrentDay();
                }
            }
            catch (Exception ex)
            {
                Debug.WriteLine(ex);
            }
        }
Ejemplo n.º 2
0
        private void CheckForUpdates_Click(object sender, RoutedEventArgs e)
        {
            Window_CheckForUpdates checkForUpdates = new Window_CheckForUpdates();

            checkForUpdates.Owner = this;
            checkForUpdates.ShowDialog();
        }
Ejemplo n.º 3
0
 private void LabelClick_MouseLeftButtonDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (sender == L_Web)
     {
         Process.Start(MainWindow.HomeWebURL);
     }
     else if (sender == L_CheckForUpdate)
     {
         Window_CheckForUpdates checkForUpdates = new Window_CheckForUpdates();
         checkForUpdates.Owner = this;
         checkForUpdates.ShowDialog();
     }
 }