Example #1
0
 //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; };
 }
Example #3
0
 public Roles()
 {
     InitializeComponent();
     PageAnimation.SetObject(front, back);
     viewModel    = new RolesViewModel();
     this.Loaded += (s, e) => { this.DataContext = this.viewModel; };
 }
Example #4
0
 public SalonProductsPage(PageAnimation pageAnimation)
 {
     this.PageAnimation = pageAnimation;
     InitializeComponent();
     NavigationPage.SetHasBackButton(this, false);
     SalonProductsPageViewModel.CartItemAdded += AddOrUpdateBadge;
     this.BindingContext = new SalonProductsPageViewModel();
 }
Example #5
0
        /// <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();
 }
Example #7
0
 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();
 }
Example #8
0
 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();
     }
 }
Example #10
0
        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();
        }
Example #11
0
 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;
     };
 }
Example #12
0
        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();
        }
Example #13
0
        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();
        }
Example #14
0
        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();
        }
Example #15
0
 //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();
     }
 }
Example #16
0
 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();
     }
 }
Example #17
0
 //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();
     }
 }
Example #18
0
 public SalonClientsPage(PageAnimation pageAnimation)
 {
     PageAnimation = pageAnimation;
     InitializeComponent();
 }
Example #19
0
 public AllCodeList()
 {
     InitializeComponent();
     PageAnimation.SetObject(front, back);
     this.Loaded += (s, e) => { this.DataContext = new AllCodeViewModel(); };
 }
Example #20
0
 public SurveyPage(PageAnimation pageAnimation)
 {
     PageAnimation = pageAnimation;
     InitializeComponent();
 }
Example #21
0
 public BaoCaoTonKho()
 {
     InitializeComponent();
     PageAnimation.SetObject(front, back);
     this.Loaded += (s, e) => { this.DataContext = new QuanLyThuocTonKho(); };
 }