public DocumentController(Word.Application app) { _app = app; _dataModel = new DataModel(); _labelModel = new LabelModel(); _labelWriter = new LabelWriter(_app); try { _labelModel.LoadFromDirectory(Properties.Settings.Default.LabelDirectory); } catch (Exception ex) { MessageBox.Show($"{ex.Message}\n{ex.StackTrace}"); } }
public LabelTemplateForm(LabelModel labelModel) { InitializeComponent(); _labelModel = labelModel; PopulateList(); }