Exemplo n.º 1
0
 private void labClose_MouseDown(object sender, MouseButtonEventArgs e)
 {
     PlayDOF           = "";
     UdpSend.movieStop = true;
     UdpSend.SendReset();
     System.Windows.Application.Current.Shutdown();
 }
Exemplo n.º 2
0
        private void timerJudge_tick(object sender, EventArgs e)
        {
            if (UdpConnect.connectFlag == false)  //未与中控板连接
            {
                btnPlayer.IsEnabled = false;
                btnPlayer.FontSize  = 24;
                if ("CN".Equals(PlayLanguage))
                {
                    btnPlayer.Content = "未连接";
                }
                else
                {
                    btnPlayer.Content = "Unconnected";
                }
            }
            else                                      //与中控板已连接
            {
                if (UdpConnect.isRegistered == false) //软件到期或者未注册
                {
                    btnPlayer.IsEnabled = false;
                    btnPlayer.FontSize  = 24;
                    if ("CN".Equals(PlayLanguage))
                    {
                        btnPlayer.Content = "未注册";
                    }
                    else
                    {
                        btnPlayer.Content = "UnRegistered";
                    }
                }
                else  //软件正常打开
                {
                    btnPlayer.IsEnabled = true;
                    btnPlayer.FontSize  = 40;
                    if (a == 0)
                    {
                        UdpSend.SendReset();
                        a = 1;
                    }
                    if ("CN".Equals(PlayLanguage))
                    {
                        btnPlayer.Content = "播放";
                    }
                    else
                    {
                        btnPlayer.Content = "Play";
                    }

                    if (Module.hintShow == true)
                    {
                        if ("CN".Equals(PlayLanguage))
                        {
                            label1.Content = "提示:软件还有" + Module.deadlineDay + "天到期";
                        }
                        else
                        {
                            label1.Content = "Tips: The software expires in " + Module.deadlineDay + " days";
                        }
                    }
                    if ("4DM".Equals(PlayType))
                    {
                        label.Content = "TimeCode: " + UdpConnect.strTimeCode;
                    }
                }
            }
        }