Пример #1
0
        private void dataGridView_alarm_record_SelectionChanged(object sender, EventArgs e)
        {
            BackPlayer.Close();

            DataGridViewRow row = dataGridView_alarm_record.CurrentRow;

            if (row != null)
            {
                IAlarmInfo alarmInfo = row.Cells[1].Value as IAlarmInfo;
                if (alarmInfo != null)
                {
                    if (!alarmInfo.VideoSource.Equals(""))
                    {
                        IVideoSourceConfig vsConfig = alarmInfo.GetVideoSourceConfig();
                        if (vsConfig != null)
                        {
                            IVideoSourceConfig backVSConfig = GetBackPlayVSConfig(vsConfig, alarmInfo);
                            if (backVSConfig != null)
                            {
                                BackPlayer.Config       = backVSConfig;
                                BackPlayer.DefaultImage = alarmInfo.GetAlarmImage();

                                label_alarm_monitor.Text = alarmInfo.ToString();
                                label_alarm_type.Text    = alarmInfo.GetAlarmType();
                                label_alarm_time.Text    = alarmInfo.AlarmTime.ToString("yyyy年MM月dd日 HH时mm分ss秒");
                                label_transact_time.Text = alarmInfo.TransactTime.ToString("yyyy年MM月dd日 HH时mm分ss秒");
                                label_transact_user.Text = alarmInfo.Transactor;
                            }
                        }
                    }
                }
            }
        }
Пример #2
0
    public void OnPlayer2Click()
    {
        GameData.AIs = new bool[2];
        Player2Button.SetActive(false);
        Player3Button.SetActive(false);
        Player4Button.SetActive(false);

        Player1.SetActive(true);
        Player2.SetActive(true);

        BackPlayer.SetActive(true);
        BackMenu.SetActive(false);
        MatchSelectButton.SetActive(true);
        PlaySelectButton.SetActive(true);

        es.SetSelectedGameObject(Player1);
    }
Пример #3
0
    public void OnBackPlayerButtonClick()
    {
        Player1.SetActive(false);
        Player2.SetActive(false);
        Player3.SetActive(false);
        Player4.SetActive(false);

        Player2Button.SetActive(true);
        Player3Button.SetActive(true);
        Player4Button.SetActive(true);

        MatchSelectButton.SetActive(false);
        BackPlayer.SetActive(false);
        BackMenu.SetActive(true);
        PlaySelectButton.SetActive(false);

        es.SetSelectedGameObject(Player2Button);
    }