コード例 #1
0
        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}");
            }
        }
コード例 #2
0
 public LabelTemplateForm(LabelModel labelModel)
 {
     InitializeComponent();
     _labelModel = labelModel;
     PopulateList();
 }