public MainForm(string[] args) : this() { GetSkylineArgs(args); _toolClient = new SkylineTool.SkylineToolClient(_skylineConnection, "TrackIN"); _toolClient.DocumentChanged += OnDocumentChanged; _toolClient.SelectionChanged += OnSelectionChanged; IsConnectedToSkylineDoc = true; }
public static void Main(string[] args) { // Useful for debugging the tool after it starts. //Debugger.Launch(); var toolConnection = args[0]; // Open connection to Skyline. using (_toolClient = new SkylineToolClient(toolConnection, "Test Interactive Tool")) // Not L10N { _toolClient.DocumentChanged += OnDocumentChanged; _testService = new TestToolService(toolConnection + "-test"); Console.WriteLine("Test service running"); _testService.Run(); } }
public MainForm(string[] args) { InitializeComponent(); // Create tool client and register for events. if (args.Length > 0) { _toolClient = new SkylineToolClient(args[0], "Example Interactive Tool"); // Not L10N _toolClient.DocumentChanged += OnDocumentChanged; _toolClient.SelectionChanged += OnSelectionChanged; } _selectedReplicate = "All"; // Not L10N replicatesToolStripMenuItem.DropDownItemClicked += ItemClicked; // Create a graph and fill it with data. _graph = new Graph(graph, "Peptide", "Peak Area"); // Not L10N _graph.Click += GraphClick; CreateGraph(); // Create chromatogram graph. _chromatogramGraph = new ChromatogramGraph(chromatogramGraph, "Retention Time", "Intensity"); // Not L10N }
public DocumentChangeReceiver(string connectionName, SkylineToolClient toolClient) : base(connectionName) { _toolClient = toolClient; }
protected override void OnClosed(EventArgs e) { base.OnClosed(e); try { _toolClient.DocumentChanged -= OnDocumentChanged; _toolClient.SelectionChanged -= OnSelectionChanged; _toolClient.Dispose(); } // ReSharper disable once EmptyGeneralCatchClause catch { } _toolClient = null; }