Esempio n. 1
0
 public void Fill(IoMap map)
 {
     if (map.HasInput(Name))
     {
         Value = map.GetInput <object>(Name);
     }
 }
        /// <summary>
        /// Shows a view to the user
        /// </summary>
        /// <param name="view">The view to display</param>
        public static void Show(IView view, IoMap map)
        {
            CurrentMap = map;
            // Call the implementation's method
            Implementation.ShowView(view, map);

            if (myViewStack.Count == 0 || view != myViewStack.Peek())
            {
                myViewStack.Push(view);
            }
        }
Esempio n. 3
0
 public void PopulateMap(IoMap currentMap)
 {
     currentMap.SetInput(Name, Value);
 }
 static ViewManager()
 {
     Auth.OnAuthChanged += (X, Y) => HandleAuthChanged();
     CurrentMap          = new IoMap();
     myViewStack         = new Stack <IView>();
 }
        /// <summary>
        /// Shows a view with the given name to the user
        /// </summary>
        /// <param name="name">The name of the view to display</param>
        public static void Show(string name, IoMap map)
        {
            IView view = Implementation.GetView(name);

            Show(view, map);
        }