示例#1
0
        public void NotifyStatusChanged(string pcname, slAmidaConsole.AmidaService.RegisterDeviceInfo info)
        {
            if (!dictDeviceInfo.ContainsKey(pcname))
                return;
            //  Dispatcher.BeginInvoke(new Action(()=>{
            dictDeviceInfo[info.PcName].Status = info.Status.Trim();
            dictDeviceInfo[info.PcName].SubStatus = info.SubStatus ;// info.SubStatus.Trim();
            dictDeviceInfo[info.PcName].IsExportPending = info.IsExportPending;

            //只為了觸發
            dictDeviceInfo[info.PcName].IsEnableDownRelease = true;

            Dispatcher.BeginInvoke(new DelegateUpdateTimerAndButtonState(UpdateTimerAndButtonState), info);
        }
示例#2
0
 //void tmr30sec_tick(object sender)
 //{
 //    if (client.State == System.ServiceModel.CommunicationState.Opened)
 //    {
 //        client.SayServerHelloAsync();
 //        textBlock1.Text = "tmr tick";
 //    }
 //    //else
 //    //{
 //    //    tmr30sec.Change(System.Threading.Timeout.Infinite, 0);
 //    //}
 //}
 public void ReceivedCommand(string xmlCmd, slAmidaConsole.AmidaService.InportCmdType cmdType, string LeadingFileName)
 {
     //  throw new NotImplementedException();
 }