Beispiel #1
0
        public TabbedMainPage()
        {
            this.Title = Const.THIS_APP_NAME;
            this.BackgroundColor = Color.Black;

            var vm = new ViewModelTabbedMainPage();
            vm.UserInfo.IsInitial = false;
            //vm.SetInitialRun(vm.UserInfo.IsInitial);
            this.BindingContext = vm;

            #region Create "CONFIG_GENERAL" XAML PAGE
            var configGeneral = new NavigationPage(new ConfigEdit(vm));
            configGeneral.Title = Const.CONFIG_GENERAL_XAML;
            configGeneral.Icon = Const.CONFIG_GENERAL_ICON;
            configGeneral.BarBackgroundColor = Color.Black;
            configGeneral.BarTextColor = Color.White;
            #endregion

            #region Create "SEARCH_CONDITION" XAML PAGE
            var searchCondition = new NavigationPage(new SearchCondition());
            searchCondition.Title = Const.SEARCH_CONDITION_XAML;
            searchCondition.Icon = Const.SEARCH_CONDITION_ICON;
            searchCondition.BarBackgroundColor = Color.Black;
            searchCondition.BarTextColor = Color.White;
            #endregion

            #region Create "WANT" XAML PAGE
            var want = new NavigationPage(new Want());
            want.Title = Const.WANT_XAML;
            want.Icon = Const.WANT_ICON;
            want.BarBackgroundColor = Color.Black;
            want.BarTextColor = Color.White;
            #endregion

            #region Create "GIVE" XAML PAGE
            var give = new NavigationPage(new Give());
            give.Title = Const.GIVE_XAML;
            give.Icon = Const.GIVE_ICON;
            give.BarBackgroundColor = Color.Black;
            give.BarTextColor = Color.White;
            #endregion

            #region Add NavigationPages
            this.Children.Add(configGeneral);
            this.Children.Add(searchCondition);
            this.Children.Add(want);
            this.Children.Add(give);
            #endregion
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="T:ColonyClient.ViewModelConfigEdit"/> class.
 /// </summary>
 /// <param name="tabbedMainPage">Tabbed main page.</param>
 public ViewModelConfigEdit(ViewModelTabbedMainPage tabbedMainPage)
 {
     _model = new ModelConfigEdit(tabbedMainPage);
     UserInfo = _model.GetInitialData();
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:ColonyClient.ConfigEdit"/> class.
 /// </summary>
 public ConfigEdit(ViewModelTabbedMainPage vm)
 {
     InitializeComponent();
     this.BindingContext = new ViewModelConfigEdit(vm);
 }
Beispiel #4
0
		/// <summary>
		/// Initializes a new instance of the <see cref="T:ColonyClient.ModelConfigEdit"/> class.
		/// </summary>
		/// <param name="tabbedMainPage">Tabbed main page.</param>
		public ModelConfigEdit(ViewModelTabbedMainPage tabbedMainPage)
		{
			_vm = tabbedMainPage;
			//_vm.UserInfo = _vm.GetInitialData();
		}