Example #1
0
        public FileControl(TestableDirectory dir, TestableGUID guid, TestableFile file, MetaDataControl metaDataControl, ContentFileControl contentFileControl, TestableMessageBox testableMessageBox)
        {
            AppSettingsReader appSettingsReader = new AppSettingsReader();

            repositoryDir           = appSettingsReader.GetValue("RepositoryDir", typeof(string));
            this.guid               = guid;
            this.dir                = dir;
            this.file               = file;
            this.metaDataControl    = metaDataControl;
            this.contentFileControl = contentFileControl;
            this.testableMessageBox = testableMessageBox;
        }
Example #2
0
 public virtual bool ValideMetadata(TestableMessageBox messageBox)
 {
     if (!string.IsNullOrEmpty(bezeichung) && valutaDatum != null && !string.IsNullOrEmpty(selectedTypItems))
     {
         return(true);
     }
     else
     if (!testmode)
     {
         messageBox.Show("Es müssen alle Pflichtfelder ausgefüllt werden");
     }
     return(false);
 }