Exemple #1
0
 private void Menu_ItemClicked(object sender, MouseEventArgs e)
 {
     //object cid = e.ClickedItem.Tag;
     MenuItemsTags.TryGetValue((MenuItem)sender, out object cid);
     if (cid != null)
     {
         Callback.Continue((int)cid, CefEventFlags.LeftMouseButton);
         Callback = null;
     }
 }
Exemple #2
0
        private void Menu_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            object cid = e.ClickedItem.Tag;

            if (cid != null)
            {
                Callback.Continue((int)cid, CefEventFlags.LeftMouseButton);
                Callback = null;
            }
        }
        private void MenuItem_Click(object sender, RoutedEventArgs e)
        {
            var    clickedItem = sender as MenuItem;
            object cid         = clickedItem?.Tag;

            if (cid != null)
            {
                Callback.Continue((int)cid, CefEventFlags.LeftMouseButton);
                Callback = null;
            }
        }