示例#1
0
 public MainWindow()
 {
     InitializeComponent();
     application     = new LogAnalyzerApplication();
     applicationVM   = new LogAnalyzerApplicationVM(application);
     applicationView = new LogAnalyzerApplicationView(this, applicationVM);
     DataContext     = applicationVM;
 }
        public LogAnalyzerApplicationVM(LogAnalyzerApplication application)
        {
            this.application = application;

            logFilesVM = application.LogFiles.Select(l => new LogFileVM(l)).ToList();
            configFile = application.ConfigFile;

            selectedLog = logFilesVM[0];
            selectedLog.PropertyChanged += onChangeTabType;
            selectedLog.selectFirstTabType();
            selectedLog.selectFirstTabType2();

            stackColumnSeries = calcStackColumnSeries();
            OnPropertyChanged("RedrawGraph");
            OnPropertyChanged("PieBlock0Series");
        }