コード例 #1
0
 private void OnHandlerSelect(object sender, EventArgs e, ProtocolHandler handler)
 {
     var executable = OpenHandlerFileDialog();
     if (executable != null && executable.Length > 0)
     {
         var app = new ProtocolApplication(executable.Split('\\').Last(), executable);
         OnSelectApplication(sender, e, handler, app);
     }
 }
コード例 #2
0
 private void OnDisableHandler(object sender, EventArgs e, ProtocolHandler handler)
 {
     Debug.WriteLine($"Removing handler from {handler.Name}");
     handler.UnsetApplication();
     UpdateTrayMenu();
 }
コード例 #3
0
 private void OnSelectApplication(object sender, EventArgs e, ProtocolHandler handler, ProtocolApplication app)
 {
     Debug.WriteLine($"Setting handler for {handler.Name} to app {app.Name}");
     handler.SetApplication(app);
     UpdateTrayMenu();
 }