Exemplo n.º 1
0
 public void PopulateGoMenu()
 {
     for (int i = 0; i < PresentationViewController.NumberOfSlides; i++)
     {
         var slideName     = PresentationViewController.ClassOfSlide(i).ToString();
         var splitedString = slideName.Split('.');
         var title         = i + " " + splitedString[1].Substring(5);
         var item          = new NSMenuItem(title, new Selector("GoTo"), "");
         item.RepresentedObject = new NSNumber(i);
         GoMenu.AddItem(item);
     }
 }
Exemplo n.º 2
0
        void ReleaseDesignerOutlets()
        {
            if (MainWindow != null)
            {
                MainWindow.Dispose();
                MainWindow = null;
            }

            if (GoMenu != null)
            {
                GoMenu.Dispose();
                GoMenu = null;
            }
        }