Ejemplo n.º 1
0
        private void OnMenuPageSetup(object sender, EventArgs e)
        {
            PrinterSettings.StringCollection printers = PrinterSettings.InstalledPrinters;
            if (printers.Count < 1)
            {
                DesignerHelpers.ShowError(this.serviceProvider, DR.GetString(DR.ThereIsNoPrinterInstalledErrorMessage));
                return;
            }

            WorkflowPageSetupDialog pageSetupDialog = new WorkflowPageSetupDialog(this.serviceProvider);
            if (DialogResult.OK == pageSetupDialog.ShowDialog())
                this.workflowView.PerformLayout(false);
        }
 private void OnMenuPageSetup(object sender, EventArgs e)
 {
     if (PrinterSettings.InstalledPrinters.Count < 1)
     {
         DesignerHelpers.ShowError(this.serviceProvider, DR.GetString("ThereIsNoPrinterInstalledErrorMessage", new object[0]));
     }
     else
     {
         WorkflowPageSetupDialog dialog = new WorkflowPageSetupDialog(this.serviceProvider);
         if (DialogResult.OK == dialog.ShowDialog())
         {
             this.workflowView.PerformLayout(false);
         }
     }
 }