//Received Message private void CurrencyEditResponseMessageReceived(ParentMessage obj) { if (obj.level.Equals("Main")) { ////OK button clicked if (obj.currentObject != null) { if (obj.action.Equals("Update")) { this.CurrentSelectItem.ItemContent = (obj.currentObject as CM_ALLCODE_SearchResult); } else { this.isInsert = true; } } else { this.messagePop.Reset(); ActionMenuButton.actionControl.SetAllAction(actionButton, null, actionButton, actionButton, actionButton, actionButton, null); PageAnimation.ToFront(); if (this.isInsert) { this.isInsert = false; this.Search(); } } } }
public PhieuNhapThuocList() { InitializeComponent(); PageAnimation.SetObject(front, back); viewModel = new PhieuNhapThuocViewModel(); this.Loaded += (s, e) => { this.DataContext = this.viewModel; }; }
public Roles() { InitializeComponent(); PageAnimation.SetObject(front, back); viewModel = new RolesViewModel(); this.Loaded += (s, e) => { this.DataContext = this.viewModel; }; }
public SalonProductsPage(PageAnimation pageAnimation) { this.PageAnimation = pageAnimation; InitializeComponent(); NavigationPage.SetHasBackButton(this, false); SalonProductsPageViewModel.CartItemAdded += AddOrUpdateBadge; this.BindingContext = new SalonProductsPageViewModel(); }
/// <summary> /// Add a fade animation to the <see cref="Storyboard"/>. /// </summary> /// <param name="storyboard">Storyboard to add the animation to.</param> /// <param name="seconds">Seconds the animation takes to complete.</param> /// /// <param name="animationType">Type of fade animation in or out.</param> public static void AddFade(this Storyboard storyboard, float seconds, PageAnimation fade) { var animation = new DoubleAnimation { Duration = new Duration(TimeSpan.FromSeconds(seconds)), From = fade == PageAnimation.FadeIn ? 0 : 1, To = fade == PageAnimation.FadeIn ? 1 : 0 }; Storyboard.SetTargetProperty(animation, new PropertyPath("Opacity")); storyboard.Children.Add(animation); }
private void Edit() { if (this.editChild == null) { this.editChild = new DepartmentTypeEdit(); PageAnimation.back.Children.Add(this.editChild); } Messenger.Default.Send(new ChildMessage() { currentObject = this.currentSelectItem.ItemContent, isEdit = true, action = ActionMenuButton.Edit, level = "Main" }); PageAnimation.ToBack(); }
private void View() { if (this.editChild == null) { this.editChild = new AllCodeEdit(); PageAnimation.back.Children.Add(this.editChild); } Messenger.Default.Send(new ChildMessage() { currentObject = this.currentSelectItem.ItemContent, isEdit = false, action = ActionMenuButton.View, level = "Main" }); PageAnimation.ToBack(); }
private void Insert() { if (this.editChild == null) { this.editChild = new AllCodeEdit(); PageAnimation.back.Children.Add(this.editChild); } Messenger.Default.Send(new ChildMessage() { currentObject = null, isEdit = false, action = ActionMenuButton.Insert, level = "Main" }); PageAnimation.ToBack(); }
//Received Message private void CurrencyEditResponseMessageReceived(ParentMessage obj) { //OK button clicked if (obj.currentObject != null) { this.currentData.Add(obj.currentObject as CM_BRANCH); } else { this.messagePop.Reset(); ActionMenuButton.actionControl.SetAllAction(actionButton, null, actionButton, actionButton, actionButton, actionButton, null); PageAnimation.ToFront(); } }
private void Edit() { if (this.PhieuNhapThuocEditChild == null) { this.PhieuNhapThuocEditChild = new PhieuNhapThuocEdit(); PageAnimation.back.Children.Add(this.PhieuNhapThuocEditChild); } Messenger.Default.Send(new ChildMessage() { currentObject = this.currentSelectItem, isEdit = true, action = ActionMenuButton.Edit, level = "Main" }); PageAnimation.ToBack(); }
public MainPage() { InitializeComponent(); PageAnimation.LoadResource(); MyHelper.AppProcessing = Processing; CurrentSystemLogin.dicApproveFunction = new Dictionary <string, bool>(); ContentFrame.Navigating += new System.Windows.Navigation.NavigatingCancelEventHandler(BeforeChange); ContentFrame.Navigated += new System.Windows.Navigation.NavigatedEventHandler(AfterChange); CurrentSystemInfor.CurrentFrame = ContentFrame; this.Loaded += (s, e) => { this.DataContext = this.viewModel; }; }
private void Edit() { if (this.menuChild == null) { this.menuChild = new MenuEdit(); PageAnimation.back.Children.Add(this.menuChild); } Messenger.Default.Send(new ChildMessage() { currentObject = this.currentMenu, isEdit = true, action = ActionMenuButton.Edit, level = "Main" }); PageAnimation.ToBack(); }
private void View() { if (this.roleChild == null) { this.roleChild = new RolesEdit(); PageAnimation.back.Children.Add(this.roleChild); } Messenger.Default.Send(new ChildMessage() { currentObject = this.currentRole, isEdit = false, action = ActionMenuButton.View, level = "Main" }); PageAnimation.ToBack(); }
private void View() { if (this.tlUserChild == null) { this.tlUserChild = new UserEdit(); PageAnimation.back.Children.Add(this.tlUserChild); } Messenger.Default.Send(new ChildMessage() { currentObject = this.currentUser.ItemContent, isEdit = false, action = ActionMenuButton.View }); PageAnimation.ToBack(); }
//Received Message private void CurrencyEditResponseMessageReceived(ParentMessage obj) { //OK button clicked if (obj.currentObject != null) { ZOO_LOTHUOC newitem = (obj.currentObject as ZOO_LOTHUOC); this.DANHSACHLOTHUOC.Add(newitem); } else { this.messagePop.Reset(); ActionMenuButton.actionControl.SetAllAction(actionButton, null, actionButton, actionButton, actionButton, actionButton, null); PageAnimation.ToFront(); } }
private void UserEditResponseMessageReceived(ParentMessage obj) { if (obj.currentObject != null) { //this.currentData.Add(obj.currentObject as TL_USER_SearchResult); this.isInsert = true; //this.DataRefresh(); } else { if (this.isInsert) { this.isInsert = false; this.Search(); } this.messagePop.Reset(); ActionMenuButton.actionControl.SetAllAction(actionButton, null, actionButton, actionButton, actionButton, actionButton, null); PageAnimation.ToFront(); } }
//Received Message private void CurrencyEditResponseMessageReceived(ParentMessage obj) { //OK button clicked if (obj.currentObject != null) { TL_MENU newitem = (obj.currentObject as TL_MENU); this.currencyData.Add(newitem); if (newitem.MENU_PARENT.Equals("")) { this.ParentData.Add(new TL_MENU() { MENU_PARENT = newitem.MENU_ID.ToString(), MENU_NAME = newitem.MENU_NAME }); } } else { this.messagePop.Reset(); ActionMenuButton.actionControl.SetAllAction(actionButton, null, actionButton, actionButton, actionButton, actionButton, null); PageAnimation.ToFront(); } }
public SalonClientsPage(PageAnimation pageAnimation) { PageAnimation = pageAnimation; InitializeComponent(); }
public AllCodeList() { InitializeComponent(); PageAnimation.SetObject(front, back); this.Loaded += (s, e) => { this.DataContext = new AllCodeViewModel(); }; }
public SurveyPage(PageAnimation pageAnimation) { PageAnimation = pageAnimation; InitializeComponent(); }
public BaoCaoTonKho() { InitializeComponent(); PageAnimation.SetObject(front, back); this.Loaded += (s, e) => { this.DataContext = new QuanLyThuocTonKho(); }; }