예제 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            // Dispatch Timerを初期化
            InitializeStateControlTimer();

            // ログ受信時に実行するメソッドを登録
            appendMessageDelegate  = new AppendMessegeDelegate(AppendList);
            appendMessageDelegate += new AppendMessegeDelegate(AppendTextBox);
            appendMessageDelegate += new AppendMessegeDelegate(AppendLogFile);
            appendMessageDelegate += new AppendMessegeDelegate(AppendLogGraph);
            appendMessageDelegate += new AppendMessegeDelegate(AppendState);
            appendMessageDelegate += new AppendMessegeDelegate(AppendStateTextBox);
            appendMessageDelegate += new AppendMessegeDelegate(AppendStateGraph);

            // ログメッセージ作成開始
            logReceiver = new NxtLogReceiver(Dispatcher, appendMessageDelegate);

            // StopWatchを初期化
            txtLogOutputStopwatch   = new Stopwatch();
            txtStateOutputStopwatch = new Stopwatch();

            // Log Managerを初期化
            logManager = new NxtLogManager();
            // State Managerを初期化
            stateManager = new NxtStateManager(new Point(0, 0), 0);

            // Log Chart Managerを初期化
            logChartManager = new NxtLogChartManager();
            // State Chart Managerを初期化
            stateChartManager = new NxtStateChartManager();

            // CheckListBoxに項目を追加
            for (int i = 1; i < NxtLog.LogDataMember.Length; i++)
            {
                chkListGraph.Items.Add(NxtLog.LogDataMember[i]);
            }

            // CheckListBoxに項目を追加
            for (int i = 1; i < NxtState.NxtStateDataMember.Length; i++)
            {
                chkListStateGraph.Items.Add(NxtState.NxtStateDataMember[i]);
            }
        }
        /// <summary>
        /// Constructor
        /// </summary>
        public MainWindow()
        {
            InitializeComponent();

            // Dispatch Timerを初期化
            InitializeStateControlTimer();

            // ログ受信時に実行するメソッドを登録
            appendMessageDelegate = new AppendMessegeDelegate(AppendList);
            appendMessageDelegate += new AppendMessegeDelegate(AppendTextBox);
            appendMessageDelegate += new AppendMessegeDelegate(AppendLogFile);
            appendMessageDelegate += new AppendMessegeDelegate(AppendLogGraph);
            appendMessageDelegate += new AppendMessegeDelegate(AppendState);
            appendMessageDelegate += new AppendMessegeDelegate(AppendStateTextBox);
            appendMessageDelegate += new AppendMessegeDelegate(AppendStateGraph);

            // ログメッセージ作成開始
            logReceiver = new NxtLogReceiver(Dispatcher, appendMessageDelegate);

            // StopWatchを初期化
            txtLogOutputStopwatch = new Stopwatch();
            txtStateOutputStopwatch = new Stopwatch();

            // Log Managerを初期化
            logManager = new NxtLogManager();
            // State Managerを初期化
            stateManager = new NxtStateManager(new Point(0, 0), 0);

            // Log Chart Managerを初期化
            logChartManager = new NxtLogChartManager();
            // State Chart Managerを初期化
            stateChartManager = new NxtStateChartManager();

            // CheckListBoxに項目を追加
            for (int i = 1; i < NxtLog.LogDataMember.Length; i++)
            {
                chkListGraph.Items.Add(NxtLog.LogDataMember[i]);
            }

            // CheckListBoxに項目を追加
            for (int i = 1; i < NxtState.NxtStateDataMember.Length; i++)
            {
                chkListStateGraph.Items.Add(NxtState.NxtStateDataMember[i]);
            }
        }