当前位置: 首页>>代码示例>>C#>>正文


C# Trace.Show方法代码示例

本文整理汇总了C#中Trace.Show方法的典型用法代码示例。如果您正苦于以下问题:C# Trace.Show方法的具体用法?C# Trace.Show怎么用?C# Trace.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Trace的用法示例。


在下文中一共展示了Trace.Show方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Animate_Click

 private void Animate_Click(object sender, EventArgs e)
 {
     if (animateclicked)
     {
         States.Enabled = Lineas.Enabled = delete.Enabled = clear.Enabled = minimiza.Enabled = true;
         animateclicked = panel1.Visible = false;
         timer.Stop();
         foreach (DictionaryEntry de in lineas)
         {
             Line l = (Line)de.Value;
             if (l.isActualLine)
                 l.isActualLine = false;
         }
         foreach (DictionaryEntry de in estados)
         {
             State s = (State)de.Value;
             if (s.isActualState)
                 s.isActualState = false;
         }
         textBox1.ReadOnly = false;
         textInput = "";
         afdDraw.Refresh();
     }
     else
     {
         if ( (textBox1.Text == "") || (estados.Count == 0) )
         {
             MessageBox.Show(this, "The input text must contain at least one character", "Input error");
         }
         else
         {
             t = new Trace(textBox1.Text);
             t.Show();
             lastActualLine = "";
             animateclicked = panel1.Visible =  true;
             charInString = 0;
             States.Enabled = Lineas.Enabled = delete.Enabled = clear.Enabled = minimiza.Enabled = false;
             textInput = textBox1.Text;
             foreach (DictionaryEntry de in estados)
             {
                 if (((State)de.Value).isInitial)
                 {
                     actualState = InitialState = ((State)de.Value).label;
                     break;
                 }
             }
             State actual = (State)estados[actualState];
             actual.isActualState = true;
             t.refresh(actual.label + " ");
             afdDraw.Refresh();
             textBox1.ReadOnly = true;
             timer.Start();
         }
     }
 }
开发者ID:jgera,项目名称:AutomatumSimulator,代码行数:55,代码来源:MainWindow.cs

示例2: afnAnimate_Click

 private void afnAnimate_Click(object sender, EventArgs e)
 {
     if (afnAnimateClicked)
     {
         afnAnimateClicked = false;
         afnEstados.Enabled = afnLineas.Enabled = afnBorrar.Enabled = afnLimpiar.Enabled = afnReset.Enabled = true;
         afnTimer.Stop();
         foreach (DictionaryEntry de in lineasAfn)
         {
             foreach (DictionaryEntry de2 in (Hashtable)de.Value)
             {
                 Line l = (Line)de2.Value;
                 if (l.isActualLine)
                     l.isActualLine = false;
             }
         }
         foreach (DictionaryEntry de in estadosAfn)
         {
             State s = (State)de.Value;
             if (s.isActualState)
                 s.isActualState = false;
         }
         textBox2.ReadOnly = panel5.Visible = false;
         afnTextInput = "";
         afnDraw.Refresh();
     }
     else
     {
         llenarAutomataAfn();
         afnAnimateClicked = true;
         afnlastActualLineKey = "";
         afnlastActualLineHtKey = "";
         panel5.Visible = true;
         afncharInString = 0;
         afnEstados.Enabled = afnLineas.Enabled = afnBorrar.Enabled = afnLimpiar.Enabled = afnReset.Enabled = false;
         afnTextInput = textBox2.Text;
         foreach (DictionaryEntry de in estadosAfn)
         {
             if (((State)de.Value).isInitial)
             {
                 afnactualState = afnInitialState = ((State)de.Value).label;
                 break;
             }
         }
         State actual = (State)estadosAfn[afnactualState];
         afnt = new Trace(afnTextInput);
         afnt.Show();
         afnt.refresh(afnactualState + " ");
         actual.isActualState = true;
         afnDraw.Refresh();
         textBox2.ReadOnly = true;
         afnTimer.Start();
     }
 }
开发者ID:jgera,项目名称:AutomatumSimulator,代码行数:54,代码来源:MainWindow.cs


注:本文中的Trace.Show方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。