Ejemplo n.º 1
0
 public static FrameScreen GetInstance(Frame frame)
 {
     if (_instance == null)
     {
         _instance = new FrameScreen (frame);
     }
     else
     {
         _instance.Frame = frame;
     }
     return _instance;
 }
Ejemplo n.º 2
0
 private void LoadFrameScreen(Frame frame)
 {
     _frameScreen = FrameScreen.GetInstance(frame);
     this.NavigationController.PushViewController (_frameScreen, true);
 }
Ejemplo n.º 3
0
 private FrameScreen(Frame frame)
     : base(UserInterfaceIdiomIsPhone ? "FrameScreen_iPhone" : "FrameScreen_iPad", null)
 {
     _frame = frame;
     _webScreen = new WebScreen ();
 }
Ejemplo n.º 4
0
        public void FetchFrames()
        {
            service.getFramesFor (Network.GetPublicIP ());

            //TODO just a stub for now

            var frame1 = new Frame ("ID_Screen1", "0.0.0.0", new Item("Egypt condemns US aid suspension",
                                                                      "http://news.bbcimg.co.uk/media/images/70385000/jpg/_70385849_tank_afp.jpg",
                                                                      "Egypt's army-backed government condemns a decision by the US to suspend some of its financial and military aid over a crackdown on Islamists.",
                                                                      "http://www.bbc.co.uk/news/world-middle-east-24471148#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa"));

            var frame2 = new Frame ("ID_Screen2", "0.0.0.1", new Item("Computer chemists win Nobel prize",
                                                                      "http://news.bbcimg.co.uk/media/images/70370000/jpg/_70370958_nobels.jpg",
                                                                      "The Nobel Prize in chemistry is awarded to three scientists, including a US-Israeli citizen, who \"took the chemical experiment into cyberspace\".",
                                                                      "http://www.bbc.co.uk/news/science-environment-24458534#sa-ns_mchannel=rss&ns_source=PublicRSS20-sa"));

            var frameList = new List<Frame> ();
            frameList.Add (frame1);
            //frameList.Add (frame2);

            _reachableFrames = frameList;
        }