Example #1
0
 private void OnMouseClick(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Left)
     {
         OpenFavoritePluginRequested?.Invoke(this, new OpenFavoritePluginEventArgs(item));
     }
 }
Example #2
0
 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));
     }
 }