Ejemplo n.º 1
0
        public async Task <FileStreamResult> GetTest()
        {
            var newvalue = new DrawImg()
            {
                mbImg = "http://api.yunkucun.top/ZmEngineSuCai/EHSKCVLrGPWFv8k3Bd1No8aV.png"
            };

            var ms = await newvalue.Draw();

            //return file;
            //var filePath = Path.Combine(PlatformServices.Default.Application.ApplicationBasePath, "ZmHelperApi.xml");
            //FileStream ms = new FileStream(filePath, FileMode.Open);
            ms.Position = 0;
            return(File(ms, "application/octet-stream", "testImg.png"));
        }
 public static void MainMenu()
 {
     DrawImg.Draw("../../Images/menu.jpg", string.Empty);
     while (true)
     {
         PrintMainMenu();
         var mainMenuInput = Console.ReadLine();
         Console.Clear();
         if (string.IsNullOrWhiteSpace(mainMenuInput))
         {
             Print.PrintMessageWithAudio("Invalid Menu Choice.");
         }
         else
         {
             ExecuteMainMenu(mainMenuInput);
         }
     }
 }