public bool SaveSettings()
        {
            var settings = new LabelPrinterSettings();

            settings.printerName = cmboBxPrinter.Text;
            settings.labelFolder = txtFolder.Text;

            return(XMLConfigHandler.SaveConfig(settings));
        }
Пример #2
0
 public LabelPrinter()
 {
     settings   = (LabelPrinterSettings)XMLConfigHandler.ReadConfig(typeof(LabelPrinterSettings));
     fileBuffer = new Dictionary <string, FileInfo>();
 }
 private void UpdateComponents(LabelPrinterSettings s)
 {
     cmboBxPrinter.Text = s.printerName;
     txtFolder.Text     = s.labelFolder;
 }