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; }
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); }