public CustomizedTallyItemEditorPage() { this.InitializeComponent(); this.CustomizedTallyViewModel = ViewModelLocator.CustomizedTallyViewModel; this.apbh = new ApplicationBarHelper(this); TiltEffect.SetIsTiltEnabled(this, true); this.LoadContent(); }
public CustomizedTallyPage() { InitializeComponent(); TiltEffect.SetIsTiltEnabled(this, true); this.apbh = new ApplicationBarHelper(this); this.apbh.SelectContentWhenFocus = true; this.apbh.OriginalBar = null; this.apbh.AddTextBox(new TextBox[] { this.AmountValueInputBox }); base.DataContext = this; }
public MoneyBuildingPage() { InitializeComponent(); this.DataContext = this; this.Loaded += MoneyBuildingPage_Loaded; aph = new ApplicationBarHelper(this); PageTitle.Text = LocalizedStrings.GetCombinedText(AppResources.Edit, AppResources.Notes).ToUpper(); }
public RepaymentOrReceiptEditor(PhoneApplicationPage page) { this.InitializeComponent(); this.aph = new ApplicationBarHelper(page); this.aph.OriginalBar = page.ApplicationBar; this.aph.SelectContentWhenFocus = true; this.aph.AddTextBox(new TextBox[] { this.DescriptionTextBox, this.TotalMoneyBox, this.InterestBox }); this.AccountName.Header = AppResources.BorrowIn + " " + AppResources.AccountName; this.AccountName.ItemsSource = ViewModelLocator.AccountViewModel.Accounts; base.Loaded += new RoutedEventHandler(this.BorrowAndLeanEditorControl_Loaded); }
public NotificationEditor() { InitializeComponent(); this.applicationBarHelper = new ApplicationBarHelper(this); this.applicationBarHelper.SelectContentWhenFocus = true; this.applicationBarHelper.AddTextBox(false, new TextBox[] { this.SubjectValue }); InitializedFrequencySelector(); this.InitializeApplicationBarText(); TiltEffect.SetIsTiltEnabled(this, true); }
public ProfileSettingPage() { base.Resources.Add("SameAsSystem", AppResources.SameAsSystem); base.Resources.Add("SupportDisplayLanguages", LanguageType.SupportDisplayLanguages); this.InitializeComponent(); this.aph = new ApplicationBarHelper(this); this.aph.SelectContentWhenFocus = true; this.aph.AddTextBox(new TextBox[] { this.AppNameTextBox }); TiltEffect.SetIsTiltEnabled(this, true); this.viewModel = new SettingPageViewModel(AppSetting.Instance); this.oldAppName = AppSetting.Instance.AppName; base.DataContext = this.viewModel; base.Loaded += new RoutedEventHandler(this.ProfileSettingPage_Loaded); }
public RepaymentItemEditor() { this.InitializeComponent(); this.applicationBarHelper = new ApplicationBarHelper(this); this.applicationBarHelper.SelectContentWhenFocus = true; this.applicationBarHelper.AddTextBox(true, new TextBox[] { this.AmountTextBox, this.Place, this.Description }); if (ViewModelLocator.AccountViewModel.Accounts.Count == 0) { ViewModelLocator.AccountViewModel.QuickLoadData(); } this.addOrEditRepaymentViewModel = new AddOrEditRepaymentViewModel(); base.DataContext = this.addOrEditRepaymentViewModel; base.Loaded += new RoutedEventHandler(this.RepaymentItemEditor_Loaded); this.InitializeApplicationBarText(); }
public InstallmentsItemEditor() { InitializeComponent(); aph = new ApplicationBarHelper(this); aph.OriginalBar = this.ApplicationBar; aph.SelectContentWhenFocus = true; TiltEffect.SetIsTiltEnabled(this, true); LoadContent(); Loaded += InstallmentsItemEditor_Loaded; }
private void initializeApplicationBar() { this.transerButton = new ApplicationBarIconButton(); this.transerButton.IconUri = new Uri("/icons/appbar.transfering.rest.png", UriKind.RelativeOrAbsolute); this.transerButton.Text = this.GetLanguageInfoByKey("TransferingAccount"); this.transerButton.IsEnabled = false; this.transerButton.Click += new System.EventHandler(this.TransferButton_Click); ApplicationBarIconButton button = new ApplicationBarIconButton(); button.Click += new System.EventHandler(this.CancelButton_Click); button.Text = this.GetLanguageInfoByKey("Cancel"); button.IconUri = new Uri("/icons/appbar.cancel.rest.png", UriKind.RelativeOrAbsolute); ApplicationBar bar = new ApplicationBar { Opacity = 0.78 }; this.applicationBarForTransfer = bar; this.applicationBarForTransfer.Buttons.Add(this.transerButton); this.applicationBarForTransfer.Buttons.Add(button); this.editingBarManager = new ApplicationBarHelper(this); this.editingBarManager.OriginalBar = this.applicationBarForTransfer; this.editingBarManager.AddTextBox(new TextBox[] { this.AmountTextBox, this.Description, this.TransferingPoundage }); base.ApplicationBar = this.applicationBarForTransfer; }
public void InitializeAppBar() { this.appBarHelper = new ApplicationBarHelper(this); this.functionAppBar = new ApplicationBar(); ApplicationBarIconButton button = IconUirs.CreateIconButton(AppResources.Save, IconUirs.SaveIcon); button.Click += new System.EventHandler(this.saveButton_Click); ApplicationBarIconButton button2 = IconUirs.CreateIconButton(AppResources.Cancel, IconUirs.CancelIconButton); button2.Click += new System.EventHandler(this.closeButton_Click); this.functionAppBar.AddButtons(new ApplicationBarIconButton[] { button, button2 }); this.appBarHelper.OriginalBar = this.functionAppBar; this.appBarHelper.SelectContentWhenFocus = true; this.appBarHelper.AddTextBox(new TextBox[] { this.DefaultAmount, this.CategoryName, this.OrderValue }); base.ApplicationBar = this.functionAppBar; }
private void LoadContent() { base.ApplicationBar.GetIconButtonFrom(0).Text = AppResources.Save; base.ApplicationBar.GetIconButtonFrom(1).Text = AppResources.Cancel; this.applicationBarHelper = new ApplicationBarHelper(this); this.applicationBarHelper.AddTextBox(new TextBox[] { this.AccountName, this.TransferingPoundage, this.InitialBalanceInputBox, LineOfCredit }) .SelectContentWhenFocus = true; this.applicationBarHelper.OriginalBar = base.ApplicationBar; }
public NewOrEditAccountItemPage() { System.Action<IApplicationBar> ifTrue = null; System.Action<IApplicationBar> ifFalse = null; this.accountItemViewModel = ViewModelLocator.AccountItemViewModel; this.actionType = PageActionType.Add; this.totalDaysOfThisMonth = 30; this.InitializeComponent(); base.ApplicationBar.Opacity = 1.0; TiltEffect.SetIsTiltEnabled(this, true); this.categoryViewModel = ViewModelLocator.CategoryViewModel; base.Loaded += new RoutedEventHandler(this.NewOrEditAccountItemPage_Loaded); this.goToPriceInputBoxButton = new ApplicationBarIconButton(IconUirs.CalcutorIconButton); this.goToPriceInputBoxButton.Text = AppResources.Calcutor; this.goToPriceInputBoxButton.Click += new System.EventHandler(this.goToPriceInputBoxButton_Click); this.editingApplicationBarManager = new ApplicationBarHelper(this); this.editingApplicationBarManager.SelectContentWhenFocus = true; this.editingApplicationBarManager.AddTextBox(new TextBox[] { this.TotalMoneyBox, this.DescriptionTextBox }); if (ifTrue == null) { ifTrue = delegate(IApplicationBar p) { p.Buttons.Add(this.goToPriceInputBoxButton); }; } if (ifFalse == null) { ifFalse = delegate(IApplicationBar p) { p.Buttons.Remove(this.goToPriceInputBoxButton); }; } this.editingApplicationBarManager.If(p => p.Name == "TotalMoneyBox", ifTrue, ifFalse); }
public NewOrEditAccountItemPage() { this.accountItemViewModel = ViewModelLocator.AccountItemViewModel; this.actionType = PageActionType.Add; this.totalDaysOfThisMonth = 30; this.InitializeComponent(); base.ApplicationBar.Opacity = 1.0; TiltEffect.SetIsTiltEnabled(this, true); this.categoryViewModel = ViewModelLocator.CategoryViewModel; base.Loaded += new RoutedEventHandler(this.NewOrEditAccountItemPage_Loaded); this.goToPriceInputBoxButton = new ApplicationBarIconButton(IconUirs.CalcutorIconButton); this.goToPriceInputBoxButton.Text = AppResources.Calcutor; this.goToPriceInputBoxButton.Click += new System.EventHandler(this.goToPriceInputBoxButton_Click); this.editingApplicationBarManager = new ApplicationBarHelper(this); this.editingApplicationBarManager.SelectContentWhenFocus = true; this.editingApplicationBarManager.AddTextBox(new TextBox[] { this.TotalMoneyBox, this.DescriptionTextBox }); ViewModelLocator.AccountViewModel.DisableControl = () => { this.ApplicationBar.IsMenuEnabled = false; if (saveAndContinue != null) { this.saveAndContinue.IsEnabled = false; } if (SaveAndStay != null) { this.SaveAndStay.IsEnabled = false; } if (SaveAndClose != null) { this.SaveAndClose.IsEnabled = false; } }; AccountName.SelectionChanged += AccountName_SelectionChanged; this.editingApplicationBarManager.If(p => p.Name == "TotalMoneyBox", p => { goToPriceInputBoxButton.Click -= goToBuildAmountBoxButton_Click; goToPriceInputBoxButton.Click += goToPriceInputBoxButton_Click; p.Buttons.Add(this.goToPriceInputBoxButton); }, p => { goToPriceInputBoxButton.Click -= goToPriceInputBoxButton_Click; p.Buttons.Remove(this.goToPriceInputBoxButton); }) .If(p => p.Name == DescriptionTextBox.Name, p => { goToPriceInputBoxButton.Click -= goToPriceInputBoxButton_Click; goToPriceInputBoxButton.Click += goToBuildAmountBoxButton_Click; p.Buttons.Add(this.goToPriceInputBoxButton); }, p => { goToPriceInputBoxButton.Click -= goToBuildAmountBoxButton_Click; p.Buttons.Remove(this.goToPriceInputBoxButton); }); }