void slrf_OKButtonPushed(object sender, EventArgs e) { string filter = String.Format("ID >= {0} and ID <= {1}", slrf.StartID, slrf.EndID); PivotA pivot = new PivotA((FFXIVLogDataSet.AnaylzedRow[])actionReport.ds.Anaylzed.Select(filter)); SetStatus("データを分類しています。"); System.Threading.ThreadStart ts = () => { pivot.UpdateTree(); pivot.Calc(); pivot.Tree.SortByTotal(false); SortNames(pivot.Tree); }; System.Threading.Thread th = new System.Threading.Thread(ts); th.Start(); while (th.IsAlive) { Application.DoEvents(); System.Threading.Thread.Sleep(100); } SetStatus("完了"); this.dataGridView1.Rows.Clear(); this.LoadTree(pivot.Tree); }
public void SetActionReport(FF14LogParser ar) { actionReport = ar; _processActionReport = actionReport; pivot = new PivotA((FFXIVLogDataSet.AnaylzedRow[]) ar.ds.Anaylzed.Select()); }