Ejemplo n.º 1
0
 private void GoToLogOrdner_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         string ordner = FIleOperations.getLoggerDir();
         Process.Start("explorer.exe", ordner);
     }
     catch (Exception ex)
     {
         log.ExLogger(ex);
     }
 }
Ejemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();
            log._wLogger("Programm started");
            windows.ResizeMode = ResizeMode.CanMinimize;
            Init inti = new Init();

            inti._Init();
            lbl_fwversion.Content   = "Installierte Version: " + inti.Fwversion;
            lbl_Messages.Visibility = Visibility.Hidden;

            try
            {
                lbl_ordner.Content = "LogOrdner: " + FIleOperations.getLoggerDir();
                LoggerDirPath      = FIleOperations.getLoggerDir();
            }
            catch (Exception ex)
            {
                MessageBox.Show(@"Konnte lbl_ordner_content nicht binden!" + "\t" + ex.Message, "getLoggerDir ist null", MessageBoxButton.OK, MessageBoxImage.Error);

                Environment.Exit(-1);
            }


            if (File.Exists(Classes.Statics.appdata + @"\FileWatcher\save"))
            {
                SetPathMenu.IsEnabled = false;
            }



            //Enable or disable the Stats / entries Window:
            if (Init.is_entriesenabled == true)
            {
                logs.Show();
                logs.rdb_showEntry.IsChecked = true;
            }
            else
            {
                //We will show no logs...
            }

            if (Init.is_statsenabled == true)
            {
                logs.btn_showstats.IsEnabled = true;
            }
            else
            {
                logs.btn_showstats.IsEnabled = false;
            }
        }