public MainForm() { InitializeComponent(); config = (QuickLabelSection)System.Configuration.ConfigurationManager.GetSection("quicklabelSettings"); //adapt the label size to the paper printer = new PrintDocument(); Version version = Assembly.GetEntryAssembly().GetName().Version; toolStripStatusLabel1.Text = version.ToString(); }
private void MainForm_Load(object sender, EventArgs e) { config = (QuickLabelSection)System.Configuration.ConfigurationManager.GetSection("quicklabelSettings"); try { labelManager = new LabelManager( config.Invoer.AdressenFile, config.Invoer.AdressenSeparator, config.Invoer.ContainersFile, config.Invoer.ContainersSeparator); } catch (Exception ex) { Logger.Error(ex); MessageBox.Show(ex.Message); } GenereerAanvraag_Click(null, e); }
public SettingsForm(PrintDocument printer) { InitializeComponent(); exeConfiguration = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); section = (QuickLabelSection)exeConfiguration.GetSection(Constants.configSectionName); }