Exemplo n.º 1
0
        private void ReposLV_MouseUp(object sender, MouseEventArgs e)
        {
            if (ReposLV.SelectedItems.Count == 0)
            {
                if (e.Button == MouseButtons.Right)
                {
                    RepoRightClickCMS.Items.Clear();
                    foreach (ToolStripMenuItem item in GetContext())
                    {
                        RepoRightClickCMS.Items.Add(item);
                    }

                    RepoRightClickCMS.Show(Cursor.Position);
                }
            }
        }
Exemplo n.º 2
0
        private void ReposLV_MouseClick(object sender, MouseEventArgs e)
        {
            RepoRightClickCMS.Items.Clear();
            Repo_Context_SelectedItem = ReposLV.SelectedItems[0];

            if (e.Button == MouseButtons.Right)
            {
                if (ManagerData.Selected_Repo != null)
                {
                    foreach (ToolStripMenuItem item in GetRepoContext())
                    {
                        RepoRightClickCMS.Items.Add(item);
                    }

                    RepoRightClickCMS.Show(Cursor.Position);
                }
            }
        }