Пример #1
0
 public EditImageModeController(GalleryObject go, GalleryViewController galleryViewController)
 {
     this.go = go;
     //finds = new List<ImageTag> ();
     mylock = false;
     found = false;
     this.gvc = galleryViewController;
 }
Пример #2
0
 public GalleryDataSource(GalleryViewController vc)
 {
     this.vc = vc;
 }
Пример #3
0
 public GalleryDelegate(GalleryViewController vc)
 {
     this.vc = vc;
 }
Пример #4
0
 void OpenGalleryWithThisActive()
 {
     gvc = new GalleryViewController (myLager);
     ancestor.NavigationController.PushViewController (gvc,true);
 }
Пример #5
0
        public void InitSateliteMenu()
        {
            var image = MenuIcon.MakeImage ();
            var yPos = View.Frame.Height - image.Size.Height - 10;
            var frame = new RectangleF (10, yPos, image.Size.Width, image.Size.Height);

            var items = GetMenuItems ();

            SateliteButton = new SatelliteMenuButton (View, image, items, frame);
            SateliteButton.CloseItemsOnClick = false;

            SateliteButton.MenuItemClick += (_, args) => {
                Console.WriteLine ("{0} was clicked!", args.MenuItem.Name);

                if(args.MenuItem.Name == "Scanner"){
                    Scanner scanner = new Scanner(this);
                    scanner.Scannit();
                }
                if(args.MenuItem.Name == "Items"){
            //					if(UserInterfaceIdiomIsPhone){
                        ItemCatalogue cat = new ItemCatalogue();
                        //PresentViewControllerAsync(cat, true);
                        ancestor.NavigationController.PushViewController(cat,true);
            //					}else{
            //						ItemMasterView itemMaster = new ItemMasterView();
            //						ancestor.NavigationController.PushViewController(itemMaster,true);
            //					}
                }
                if(args.MenuItem.Name == "Big Items"){
            //					if(UserInterfaceIdiomIsPhone){
                        BigItemsScreen biggies = new BigItemsScreen();
                        ancestor.NavigationController.PushViewController(biggies, true);
            //					}else{
            //						BigItemMasterView bigMaster = new BigItemMasterView();
            //						ancestor.NavigationController.PushViewController(bigMaster,true);
            //					}
                }
                if(args.MenuItem.Name == "Containers"){
            //					if(UserInterfaceIdiomIsPhone){
                        ContainerScreen containers = new ContainerScreen();
                        ancestor.NavigationController.PushViewController(containers,true);
            //					}else{
            //						ContainerMasterView containerMaster = new ContainerMasterView();
            //						ancestor.NavigationController.PushViewController(containerMaster,true);
            //					}
                }

                if(args.MenuItem.Name == "Gallery"){
                    GalleryViewController tagGallery = new GalleryViewController();
                    ancestor.NavigationController.PushViewController(tagGallery,true);
                }

                if(args.MenuItem.Name == "Locations"){
            //					if(UserInterfaceIdiomIsPhone){
                    StorageCatalogue sc = new StorageCatalogue();
                    ancestor.NavigationController.PushViewController(sc,true);
            //					}else{
            //						LagerMasterView lmv = new LagerMasterView();
            //						ancestor.NavigationController.PushViewController(lmv,true);
            //					}
                }

                if(args.MenuItem.Name == "Dashboard"){
                    DashBoardViewController dash = new DashBoardViewController();
                    ancestor.NavigationController.PushViewController(dash,true);
                }

            };
            this.View.BackgroundColor = UIColor.Clear;
            View.AddSubview (SateliteButton);
            View.UserInteractionEnabled = true;
        }
Пример #6
0
 protected override void Dispose(bool disposing)
 {
     ThumbChanged = null;
     gvc = null;
     scrollView.Dispose ();
     tgv.Dispose ();
     go = null;
     blend.Dispose ();
     longPressGesture.Dispose ();
     doubletap.Dispose ();
     this.ZoomTagging = null;
     this.taglistButton = null;
     taglistButton.Dispose ();
     AssignPictureButton.Dispose ();
     iv.Dispose ();
     buttons = null;
     tagMyZoomedObject = null;
     base.Dispose (disposing);
 }