public Step1(Laptop lp = null, bool back = false)
        {
            InitializeComponent();
            if (back)
            {
                Animation = new Rg.Plugins.Popup.Animations.ScaleAnimation()
                {
                    PositionIn  = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Left,
                    PositionOut = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Right
                };
            }
            if (lp == null)
            {
                laptop = new Laptop();
            }
            else
            {
                laptop = lp;
                if (back)
                {
                    Brand.Text = laptop.Brand;
                    Name.Text  = laptop.Name;
                    Price.Text = lp.price;
                }
            }

            this.back = back;
        }
 private async void ExitButton_Clicked(object sender, EventArgs e)
 {
     Animation = new Rg.Plugins.Popup.Animations.ScaleAnimation()
     {
         PositionIn  = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Left,
         PositionOut = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Right
     };
     await PopupNavigation.Instance.PopAsync();
 }
Пример #3
0
        public SearchFiltrosPopUpPage(SearchFiltrosPopUpViewModel viewModel, IUpdateFromPopUpCallback callbackViewModel)
        {
            ViewModel          = viewModel;
            BindingContext     = ViewModel;
            _CallbackViewModel = callbackViewModel;

            Animation = new Rg.Plugins.Popup.Animations.ScaleAnimation();

            InitializeComponent();
        }
Пример #4
0
 public NewAttendancePartial(Course course)
 {
     InitializeComponent();
     BindingContext        = new NewAttendanceViewModel(this.Navigation, course);
     courseTitleLabel.Text = "{ Course: " + course.code + " }";
     Animation             = new Rg.Plugins.Popup.Animations.ScaleAnimation();
     foreach (var venue in App.TeacherData.venues)
     {
         var venueName = venue.name;
         venuePicker.Items.Add(venueName);
     }
 }
Пример #5
0
        private async void BackButton_Clicked(object sender, EventArgs e)
        {
            Animation = new Rg.Plugins.Popup.Animations.ScaleAnimation()
            {
                PositionIn  = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Left,
                PositionOut = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Right
            };

            lp.proc.name       = ProcessorName.Text;
            lp.proc.cores      = (int)Cores.Value;
            lp.proc.threads    = (int)Threads.Value;
            lp.proc.clockspeed = ClockSpeed.Value;
            lp.proc.cache      = Cache.Text;

            await PopupNavigation.Instance.RemovePageAsync(this);

            await PopupNavigation.Instance.PushAsync(new Step1(lp, true));
        }
        private async void BackButton_Clicked(object sender, EventArgs e)
        {
            Animation = new Rg.Plugins.Popup.Animations.ScaleAnimation()
            {
                PositionIn  = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Left,
                PositionOut = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Right
            };
            lp.graphics = Graphics.Text;
            if (OS.SelectedIndex != -1)
            {
                lp.Os = OS.SelectedItem.ToString();
            }
            lp.RAM     = (int)RAM.Value;
            lp.storage = Storage.Text;
            lp.screen  = Screen.Text;
            await PopupNavigation.Instance.RemovePageAsync(this);

            await PopupNavigation.Instance.PushAsync(new Step2(lp, true));
        }
 public Step3(Laptop lp, bool back = false)
 {
     InitializeComponent();
     this.lp = lp;
     if (back)
     {
         Animation = new Rg.Plugins.Popup.Animations.ScaleAnimation()
         {
             PositionIn  = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Left,
             PositionOut = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Right
         };
         Graphics.Text   = lp.graphics;
         OS.SelectedItem = lp.Os;
         RAM.Value       = lp.RAM;
         Storage.Text    = lp.storage;
         Screen.Text     = lp.screen;
     }
     this.back = back;
 }
Пример #8
0
        public Step2(Laptop lp, bool back = false)
        {
            InitializeComponent();

            this.lp   = lp;
            this.back = back;
            if (back)
            {
                Animation = new Rg.Plugins.Popup.Animations.ScaleAnimation()
                {
                    PositionIn  = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Left,
                    PositionOut = Rg.Plugins.Popup.Enums.MoveAnimationOptions.Right
                };
                ProcessorName.Text = lp.proc.name;
                Cores.Value        = lp.proc.cores;
                Threads.Value      = lp.proc.threads;
                ClockSpeed.Value   = lp.proc.clockspeed;
                Cache.Text         = lp.proc.cache;
            }
            else
            {
                lp.proc = new Processor();
            }
        }