private void addslip_Click(object sender, RoutedEventArgs e) { FunPage.MediaEdit.PrintTemplateEditWindow ptew = new PrintTemplateEditWindow(); ptew.vm_PrintTemplate.IsEdit = false; ptew.ShowDialog(); vm_PrintList.GetDataList(); }
private void revamp_Click(object sender, RoutedEventArgs e) { if (LBList.SelectedIndex < 0) { vm_PrintList.ErrorMessage = "请先选中一个项目!"; } FunPage.MediaEdit.PrintTemplateEditWindow print = print = new PrintTemplateEditWindow(); print.vm_PrintTemplate.IsEdit = true; print.vm_PrintTemplate.PrintModel = LBList.SelectedItem as AMS.Model.AMS_PrintTemplate; print.vm_PrintTemplate.ToListXML(); print.ShowDialog(); vm_PrintList.GetDataList(); }