コード例 #1
0
        public ExpIncAccPage(string accountType)
        {
            InitializeComponent();
            BindingContext   = viewModel = new ViewModels.ExpIncAccViewModel(accountType);
            this.accountType = accountType;
            if (Device.RuntimePlatform == Device.UWP || DeviceDisplay.MainDisplayInfo.Density <= 2)
            {
                viewModel.ChangeFont = 20.0;
            }

            this.ToolbarItems.Add(new ToolbarItem()
            {
                IconImageSource = "hamburger.png",
                Command         = new Command(() =>
                {
                    DisplayMenu();
                })
            });
            DataQuery = new Model.DataQuery_Mod();

            this.Title = "Accounts";

            if (Device.RuntimePlatform == Device.UWP)
            {
            }
            base.Appearing += ExpIncAccPage_Appearing;
        }
コード例 #2
0
        public IncomeEntriesPage(int accountID)
        {
            InitializeComponent();
            BindingContext = viewModel = new ViewModels.IncomeEntriesViewModel(accountID);
            if (Device.RuntimePlatform == Device.UWP || DeviceDisplay.MainDisplayInfo.Density <= 2)
            {
                viewModel.ChangeFont = 20.0;
            }

            DataQuery = new Model.DataQuery_Mod();
            this.ToolbarItems.Add(new ToolbarItem()
            {
                IconImageSource = "hamburger.png",
                Command         = new Command(() =>
                {
                    DisplayMenu();
                })
            });

            base.Appearing += IncomeEntriesPage_Appearing;
        }
コード例 #3
0
 public ExpIncAccViewModel(int accountID)
 {
     DataQuery      = new Model.DataQuery_Mod();
     this.accountID = accountID;
 }
コード例 #4
0
 public ExpIncAccViewModel(string accountType)
 {
     DataQuery        = new Model.DataQuery_Mod();
     this.accountType = accountType;
 }
コード例 #5
0
 public ExpenseEntriesViewModel(int accountID)
 {
     DataQuery      = new Model.DataQuery_Mod();
     this.accountID = accountID;
 }
コード例 #6
0
 public SettingsViewModel()
 {
     DataQuery = new Model.DataQuery_Mod();
 }