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

            printHelper          = new PrintHelper(text);
            printHelper.Settings = printSettings = settings;
            LoadSettings();
        }
Esempio n. 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();
        }