Exemplo n.º 1
0
        public override System.Windows.Window EditPage(Framework.UI.Info.DBInternPage DBInternPage)
        {
            var window  = CommonServiceLocator.ServiceLocator.Current.GetInstance <IDocumentWorkflowAppSettingsWindow>();
            var service = CommonServiceLocator.ServiceLocator.Current.GetInstance <IDocumentWorkflowAppSettingsService>();

            window.DBInternPage = DBInternPage;

            var data = service.Get(window.DBInternPage.Guid);

            if (data == null)
            {
                window.ShowDialog(window.DBInternPage.Guid, Studio.UI.Mode.New);
            }
            else
            {
                window.ShowDialog(window.DBInternPage.Guid, Studio.UI.Mode.Edit);
            }

            return(null);
        }
Exemplo n.º 2
0
 public override Page CreatePage(Framework.UI.Info.DBInternPage DBInternPage)
 {
     return(new Control_DocumentWorkflow(DBInternPage));
 }