Exemplo n.º 1
0
 public OperationView(ObservableCollectionDisp <OperationView> _items, CancellationTokenSource _cancel)
 {
     progress      = 0.0;
     title         = "";
     items         = _items;
     complete      = false;
     CancelCommand = new command.CancelCommand(_cancel);
     AddToItems();
 }
Exemplo n.º 2
0
        public ViewModel()
        {
            log_name             = "";
            OpenFileCommand      = new command.OpenFileCommand(this);
            ParseLogCommand      = new command.ParseLogCommand(this);
            AnalyzeThreadCommand = new command.AnalyzeThreadCommand(this);
            AnalyzeMainCommand   = new command.AnalyzeMainCommand(this);
            CountLinesCommand    = new command.CountLinesCommand(this);

            threads    = new List <ulong>();
            Operations = new ObservableCollectionDisp <OperationView>();

            Series         = new SeriesCollection();
            SeriesMainPage = new SeriesCollection();
            linesByThread  = new MultiSortedList <ulong, core.model.LineInfo>();
            lines          = new List <core.model.LineInfo>();
        }