/// <summary>
        /// 添加模板
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnAddTemplate_Click(object sender, RoutedEventArgs e)
        {
            TempleteInfoPop tIP = new TempleteInfoPop();

            tIP.SetTempleteInfo(null, 1, null);
            tIP.ShowDialog();
        }
        /// <summary>
        /// 修改模板
        /// </summary>
        private void UpdateTemplate()
        {
            if (listViewTemplate.SelectedIndex < 0)
            {
                MB_MODULES.Views.MyMessage.showYes("请选中需要修改的模版!");
                return;
            }
            MyFaceObj       myFaceObj = listViewTemplate.SelectedItem as MyFaceObj;
            TempleteInfoPop tIP       = new TempleteInfoPop();

            tIP.SetTempleteInfo(myFaceObj, 2, null);
            tIP.ShowDialog();
        }
Beispiel #3
0
        /// <summary>
        /// 双击添加模版
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void listViewCaptureRecord_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            if (GlobalCache.AppType == 1)
            {
                return;
            }
            MyCapFaceLogWithImg cmpFaceLogWidthImg = listViewCaptureRecord.SelectedItem as MyCapFaceLogWithImg;

            if (cmpFaceLogWidthImg == null)
            {
                return;
            }
            List <byte[]> listImageBytes = new List <byte[]>();

            listImageBytes = thirft.QueryCapLogImageH(cmpFaceLogWidthImg.ID, currDay);
            TempleteInfoPop tIP = new TempleteInfoPop();

            tIP.SetTempleteInfo(null, 3, listImageBytes[0]);
            tIP.ShowDialog();
        }