예제 #1
0
 private void Init()
 {
     ProductionView.Clear();
     FirstView.Clear();
     VnBox.Text = "";
     VtBox.Text = "";
     ItemSetView.Clear();
     TableView.Clear();
     InBox.Text = "";
     ProcessView.Clear();
 }
예제 #2
0
 private void BindProcessView()
 {
     ProcessView.GridLines = true;
     ProcessView.View      = View.Details;
     ProcessView.Clear();
     ProcessView.Columns.Add("步骤", 40);
     ProcessView.Columns.Add("状态栈", 200);
     ProcessView.Columns.Add("符号栈", 200);
     ProcessView.Columns.Add("输入串", 200);
     ProcessView.Columns.Add("ACTION", 60);
     ProcessView.Columns.Add("GOTO", 60);
     foreach (AnalysisLog log in Analysis.AnalysisLogs)
     {
         List <String> a = new List <string>();
         a.Add(log.Index.ToString());
         a.Add(log.StatusStack);
         a.Add(log.CharStack);
         a.Add(log.Remain);
         a.Add(log.Action);
         a.Add(log.GoTo);
         ListViewItem listViewItem = new ListViewItem(a.ToArray());
         ProcessView.Items.Add(listViewItem);
     }
 }