示例#1
0
 public PrintTextForm(string text, PrintSettings settings)
 {
     InitializeComponent();
     printHelper = new PrintHelper(text);
     printHelper.Settings = printSettings = settings;
     LoadSettings();
 }
示例#2
0
 public PrintTextForm(string text, PrintSettings settings)
 {
     InitializeComponent();
     printHelper          = new PrintHelper(text);
     printHelper.Settings = printSettings = settings;
     LoadSettings();
 }
示例#3
0
 public PrintForm(Image img, PrintSettings settings, bool previewOnly = false)
 {
     InitializeComponent();
     printHelper = new PrintHelper(img);
     printHelper.Settings = printSettings = settings;
     btnPrint.Enabled = !previewOnly;
     LoadSettings();
 }
示例#4
0
 public PrintForm(Image img, PrintSettings settings, bool previewOnly = false)
 {
     InitializeComponent();
     printHelper          = new PrintHelper(img);
     printHelper.Settings = printSettings = settings;
     btnPrint.Enabled     = !previewOnly;
     LoadSettings();
 }
示例#5
0
        public PrintTextForm(string text, PrintSettings settings)
        {
            InitializeComponent();
            ShareXResources.ApplyTheme(this);

            printHelper          = new PrintHelper(text);
            printHelper.Settings = printSettings = settings;
            LoadSettings();
        }
示例#6
0
        public PrintForm(Image img, PrintSettings settings, bool previewOnly = false)
        {
            InitializeComponent();
            ShareXResources.ApplyThemeToForm(this);

            printHelper          = new PrintHelper(img);
            printHelper.Settings = printSettings = settings;
            btnPrint.Enabled     = !previewOnly;
            LoadSettings();
        }