Beispiel #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;
     }
 }
Beispiel #2
0
 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;
     }
 }