Ejemplo n.º 1
0
 void TreeView_Click(object sender, MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right && treeView.SelectedNode != null)
     {
         TVMenu.Show(Cursor.Position);
     }
 }
Ejemplo n.º 2
0
        public void AddShowTest()
        {
            var show = new TVShow();

            show.ShowName  = "The Devil Wears Prada";
            show.MainActor = "Meryl Streep";
            show.Genre     = "Comedy";
            show.Director  = "David Frankel";
            show.Rating    = "PG-13";

            var result = TVMenu.AddShow();

            Assert.Equal(show, result);
        }