Ejemplo n.º 1
0
        /// <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();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 修改模板
        /// </summary>
        private void UpdateTemplate()
        {
            if (listViewTemplate.SelectedIndex < 0)
            {
                MyMessage.showYes("请选中需要修改的模版!");
                return;
            }
            MyFaceObj       myFaceObj = listViewTemplate.SelectedItem as MyFaceObj;
            TempleteInfoPop tIP       = new TempleteInfoPop();

            tIP.SetTempleteInfo(myFaceObj, 2, null);
            tIP.ShowDialog();
        }