Changeset 2500


Ignore:
Timestamp:
Jan 27, 2011, 1:33:55 PM (10 years ago)
Author:
nolte
Message:

Excluded the write process of the csv file from the key searcher (Not in use right now)

Location:
trunk/CrypPlugins/KeySearcher
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/KeySearcher.cs

    r2495 r2500  
    13691369            }
    13701370            GenerateMaschineStats();
    1371             WriteStatistics(dataIdentifier);
    1372 
     1371
     1372            //The following Method can be used to write a local csv file with the User/Maschine Statistics.
     1373            //WriteStatistics(dataIdentifier);
     1374           
    13731375            ((QuickWatch)QuickWatchPresentation).StatisticsPresentation.Statistics = statistic;
    13741376            ((QuickWatch)QuickWatchPresentation).StatisticsPresentation.MachineHierarchy = maschinehierarchie;
     
    14051407            catch (Exception)
    14061408            {
    1407                 GuiLogMessage(string.Format("Failed to write statistics to {0}", path), NotificationLevel.Debug);
    1408             }
    1409 
    1410 
    1411             /*
    1412             //For testing purpose. This writes the Maschinestatistics to the main folder if no different path was chosen--------
     1409                GuiLogMessage(string.Format("Failed to write Userstatistics to {0}", path), NotificationLevel.Error);
     1410            }
     1411
     1412            //For testing purpose. This writes the Maschinestatistics to the main folder if no different path was chosen
    14131413            if (settings.CsvPath == "")
    14141414            {
    1415                 //using the default save folder %APPDATA%\Local\Cryptool2
    1416                 using (StreamWriter sw = new StreamWriter(string.Format("{0}\\Maschine{1}.csv", DirectoryHelper.DirectoryLocal, dataIdentifier)))
    1417                 {
    1418                     sw.WriteLine("Maschineid" + ";" + "Name" + ";" + "Sum" + ";" + "Users");
    1419 
     1415                try
     1416                {
     1417                    //using the default save folder %APPDATA%\Local\Cryptool2
     1418                    using (StreamWriter sw = new StreamWriter(string.Format("{0}\\Maschine{1}.csv", DirectoryHelper.DirectoryLocal, dataIdentifier)))
     1419                    {
     1420                        sw.WriteLine("Maschineid" + ";" + "Name" + ";" + "Sum" + ";" + "Users");
    14201421                        foreach (long mID in maschinehierarchie.Keys)
    14211422                        {
    14221423                            sw.WriteLine(mID + ";" + maschinehierarchie[mID].Hostname + ";" + maschinehierarchie[mID].Sum + ";" + maschinehierarchie[mID].Users);
    14231424                        }
    1424                    
    1425                 }
    1426             }
    1427             //-------------
    1428             */
    1429              
     1425                    }
     1426                }
     1427                catch (Exception)
     1428                {
     1429                    GuiLogMessage(string.Format("Failed to write Maschinestatistics to {0}", path), NotificationLevel.Error);
     1430                }
     1431            }             
    14301432        }
    14311433
  • trunk/CrypPlugins/KeySearcher/Presentation/Controls/StatisticsPresentation.xaml

    r2393 r2500  
    3232   
    3333    <TabControl>
     34        <TabItem Header="{Loc _Information_}">
     35            Under Construction
     36        </TabItem>
    3437        <TabItem Header="{Loc _Users_}">
    3538            <Grid>
Note: See TracChangeset for help on using the changeset viewer.