예제 #1
0
 public void Register(InvocationContext context)
 {
     try
     {
         FileAssociation.Unassociate();
         FileAssociation.Associate();
         Console.WriteLine("Registered MGCB Editor!");
     }
     catch (Exception ex)
     {
         Console.Error.WriteLine("Failed to register MGCB Editor due to:" + Environment.NewLine + ex);
         throw;
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: zad15c/MonoGame
 public void Register(InvocationContext context)
 {
     try
     {
         FileAssociation.Associate();
         Console.WriteLine("");
         Console.WriteLine("Registered MGCB Editor!");
     }
     catch
     {
         Console.WriteLine("");
         Console.Error.WriteLine("Failed to register MGCB Editor");
         throw;
     }
 }