Example #1
0
        /// <summary>
        /// Brings up the truth table window and hooks into truth table events
        /// </summary>
        public void DisplayTruthTable()
        {
            truthTableWindow = new TruthTableWindow(new TruthTable(sketchPanel.Circuit));

            truthTableWindow.Closed += new EventHandler(truthTableWindow_Closed);

            truthTableWindow.Show();
            truthTableWindow.SimulateRow    += new RowHighlightEventHandler(truthTableWindow_SimulateRow);
            truthTableWindow.Highlight      += new HighlightEventHandler(truthTableWindow_HighlightLabel);
            truthTableWindow.UnHighlight    += new UnhighlightEventHandler(truthTableWindow_UnHighlightLabel);
            truthTableWindow.RelabelStrokes += new RelabelStrokesEventHandler(truthTableWindow_RelabelStrokes);
        }
Example #2
0
        /// <summary>
        /// Brings up the truth table window and hooks into truth table events
        /// </summary>
        public void DisplayTruthTable()
        {
            TruthTable truthTable = new TruthTable(sketchPanel.Circuit);

            truthTableWindow         = new TruthTableWindow(truthTable.TruthTableHeader, truthTable.TruthTableOutputs, sketchPanel.Circuit.NumInputs);
            truthTableWindow.Closed += new EventHandler(truthTableWindow_Closed);

            truthTableWindow.Show();
            truthTableWindow.SimulateRow    += new RowHighlightEventHandler(truthTableWindow_SimulateRow);
            truthTableWindow.Highlight      += new HighlightEventHandler(truthTableWindow_HighlightLabel);
            truthTableWindow.UnHighlight    += new UnhighlightEventHandler(truthTableWindow_UnHighlightLabel);
            truthTableWindow.RelabelStrokes += new RelabelStrokesEventHandler(truthTableWindow_RelabelStrokes);
        }