예제 #1
0
 private void ApplyFiltersButton_Click(object sender, EventArgs e)
 {
     CurrentActorFilter    = ActorFilterTextBox.Text;
     CurrentPropertyFilter = PropertyFilterTextBox.Text;
     CurrentRPCFilter      = RPCFilterTextBox.Text;
     ChartParser.ParseStreamIntoChart(CurrentNetworkStream, NetworkChart, CurrentActorFilter, CurrentPropertyFilter, CurrentRPCFilter);
 }
 private void ReloadChartWorker()
 {
     ChartParser.ParseStreamIntoChart(this, CurrentNetworkStream, NetworkChart, CurrentFilterValues);
     CancelSelectRangeThread();
     SelectRangeThread = new Thread(() => SelectRangeWorker(0, CurrentNetworkStream.Frames.Count));
     SelectRangeThread.Start();
     LoadThread = null;
 }
예제 #3
0
 private void ChangeNetworkStream(Stream ParserStream)
 {
     try
     {
         CurrentNetworkStream = StreamParser.Parse(ParserStream);
         StreamParser.ParseStreamIntoListView(CurrentNetworkStream, CurrentNetworkStream.ActorNameToSummary, ActorListView);
         StreamParser.ParseStreamIntoListView(CurrentNetworkStream, CurrentNetworkStream.PropertyNameToSummary, PropertyListView);
         StreamParser.ParseStreamIntoListView(CurrentNetworkStream, CurrentNetworkStream.RPCNameToSummary, RPCListView);
         ChartParser.ParseStreamIntoChart(CurrentNetworkStream, NetworkChart, CurrentActorFilter, CurrentPropertyFilter, CurrentRPCFilter);
     }
     catch (System.Exception)
     {
         CurrentNetworkStream = null;
         foreach (var Series in NetworkChart.Series)
         {
             Series.Points.Clear();
         }
     }
 }
예제 #4
0
        private void ChangeNetworkStreamWorker(string Filename)
        {
            using (var ParserStream = File.OpenRead(Filename))
            {
                try
                {
                    CurrentNetworkStream = StreamParser.Parse(this, ParserStream);
                    ParseStreamForListViews();
                    ChartParser.ParseStreamIntoChart(this, CurrentNetworkStream, NetworkChart, CurrentFilterValues);
                }
                catch (System.Threading.ThreadAbortException)
                {
                }
                catch (System.Exception)
                {
                    ClearStreamAndChart();
                }
            }

            LoadThread = null;
        }