private void OnMouseClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { OpenFavoritePluginRequested?.Invoke(this, new OpenFavoritePluginEventArgs(item)); } }
private void cmsMru_ItemClicked(object sender, ToolStripItemClickedEventArgs e) { if (e.ClickedItem == tsmiRemove) { RemoveFavoriteRequested?.Invoke(this, new System.EventArgs()); } else if (e.ClickedItem == tsmiOpenWithConnection) { OpenFavoritePluginRequested?.Invoke(this, new OpenFavoritePluginEventArgs(item, true)); } }