コード例 #1
0
        private void cpu_Error(object sender, PviEventArgs e)
        {
            _log.Error(PviMessage.FormatMessage("Cpu Error", e));

            Cpu cpu = sender as Cpu;

            if (cpu != null)
            {
                cpu.Connected    -= cpu_Connected;
                cpu.Error        -= cpu_Error;
                cpu.Disconnected -= cpu_Disconnected;
            }
        }
コード例 #2
0
        private void Variable_Error(object sender, PviEventArgs e)
        {
            string message = PviMessage.FormatMessage("Variable error: ", e);

            _log.Error(message);
        }