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); } }
private void OnDisableHandler(object sender, EventArgs e, ProtocolHandler handler) { Debug.WriteLine($"Removing handler from {handler.Name}"); handler.UnsetApplication(); UpdateTrayMenu(); }
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(); }