Exemplo n.º 1
0
        bool?Show(bool okCancel)
        {
            WorkflowElementDialogWindow wnd = new WorkflowElementDialogWindow(this, okCancel, this.EnableMinimizeButton, this.EnableMaximizeButton, this.OnOk)
            {
                Title = this.Title
            };

            if (null != this.Context)
            {
                WindowHelperService srv = this.Context.Services.GetService <WindowHelperService>();
                if (null != srv)
                {
                    srv.TrySetWindowOwner(this.Owner, wnd);
                }
            }
            wnd.Closed += (s, e) => { this.OnWorkflowElementDialogClosed(((Window)s).DialogResult); };
            return(wnd.ShowDialog());
        }
 bool? Show(bool okCancel)
 {
     WorkflowElementDialogWindow wnd = new WorkflowElementDialogWindow(this, okCancel, this.EnableMinimizeButton, this.EnableMaximizeButton, this.OnOk) 
     { 
         Title = this.Title 
     };
     if (null != this.Context)
     {
         WindowHelperService srv = this.Context.Services.GetService<WindowHelperService>();
         if (null != srv)
         {
             srv.TrySetWindowOwner(this.Owner, wnd);
         }
     }
     wnd.Closed += (s, e) => { this.OnWorkflowElementDialogClosed(((Window)s).DialogResult); };
     return wnd.ShowDialog();
 }