Example #1
0
        protected void StartCommunicationSoftware()
        {
            var baseDirectory    = DirectoryGetter.GetBaseDirectory(Directory.GetCurrentDirectory());
            var communicationUrl = baseDirectory + "\\Communication Software\\bin\\Debug\\Communication Software.exe";

            System.Diagnostics.Process.Start(communicationUrl);
        }
Example #2
0
        private Image GetImage()
        {
            var directory = DirectoryGetter.GetDirectoryForAssembly(Assembly.GetExecutingAssembly());
            var file      = File.ReadAllBytes(directory + "/Migrations/Img/news.jpg");
            var image     = new Image
            {
                Content       = file,
                FileExtension = "jpg"
            };

            return(image);
        }
Example #3
0
 public override IDirectory GetDirectory(string path)
 {
     return(DirectoryGetter.Get(path));
 }