Exemple #1
0
        public void PickerConstructor()
        {
            tlog.Debug(tag, $"PickerConstructor START");

            var testingTarget = new Picker();

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Picker>(testingTarget, "Should return Picker instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"PickerConstructor END (OK)");
        }
        void ReleaseDesignerOutlets()
        {
            if (Table != null)
            {
                Table.Dispose();
                Table = null;
            }

            if (Picker != null)
            {
                Picker.Dispose();
                Picker = null;
            }
        }
Exemple #3
0
        public void PickerMaxValue()
        {
            tlog.Debug(tag, $"PickerMaxValue START");

            var testingTarget = new Picker();

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Picker>(testingTarget, "Should return Picker instance.");

            testingTarget.MaxValue = 60;
            tlog.Debug(tag, "MaxValue : " + testingTarget.MaxValue);

            testingTarget.Dispose();
            tlog.Debug(tag, $"PickerMaxValue END (OK)");
        }
Exemple #4
0
        private void DestoryDatePicker()
        {
            if (popup != null)
            {
                if (datePicker != null)
                {
                    popup.ContentView.Remove(datePicker);
                    datePicker.Dispose();
                    datePicker = null;
                }

                root.Remove(popup);
                popup.Dispose();
                popup = null;
            }
        }
Exemple #5
0
        public static void Exit()
        {
            Picker.Dispose();
            MenuBack.Dispose();

            tileCache.Clear();
            objectCache.Clear();
            itemCache.Clear();
            statusCache.Clear();
            spellCache.Clear();
            mugshotCache.Clear();
            spriteCache.Clear();

            BlankTexture.Dispose();
            ErrorTexture.Dispose();

            SingleFont.Dispose();

            TextureProgram.Dispose();
        }
Exemple #6
0
        public void PickerDisplayedValues()
        {
            tlog.Debug(tag, $"PickerDisplayedValues START");

            var testingTarget = new Picker();

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Picker>(testingTarget, "Should return Picker instance.");

            string[] items = new string[3];
            items[0] = "str0";
            items[1] = "str1";
            items[2] = "str2";
            ReadOnlyCollection <string> rc = new ReadOnlyCollection <string>(items);

            testingTarget.DisplayedValues = rc;
            tlog.Debug(tag, "DisplayedValues : " + testingTarget.DisplayedValues);

            testingTarget.Dispose();
            tlog.Debug(tag, $"PickerDisplayedValues END (OK)");
        }
Exemple #7
0
        public void PickerConstructorWithPickStyle()
        {
            tlog.Debug(tag, $"PickerConstructorWithPickStyle START");

            PickerStyle style = new PickerStyle()
            {
                Divider = new ViewStyle()
                {
                    Focusable = true,
                    Size      = new Size(100, 2),
                    Position  = new Position(100, 200)
                },
            };

            var testingTarget = new Picker(style);

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <Picker>(testingTarget, "Should return Picker instance.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"PickerConstructorWithPickStyle END (OK)");
        }
Exemple #8
0
        void ReleaseDesignerOutlets()
        {
            if (TopBar != null)
            {
                TopBar.Dispose();
                TopBar = null;
            }

            if (ActivityExplainerLbl != null)
            {
                ActivityExplainerLbl.Dispose();
                ActivityExplainerLbl = null;
            }

            if (appLogo != null)
            {
                appLogo.Dispose();
                appLogo = null;
            }

            if (AreYouInfectetLbl != null)
            {
                AreYouInfectetLbl.Dispose();
                AreYouInfectetLbl = null;
            }

            if (AreYouInfectetView != null)
            {
                AreYouInfectetView.Dispose();
                AreYouInfectetView = null;
            }

            if (dailyNumbersIcon != null)
            {
                dailyNumbersIcon.Dispose();
                dailyNumbersIcon = null;
            }

            if (dailyNumbersLbl != null)
            {
                dailyNumbersLbl.Dispose();
                dailyNumbersLbl = null;
            }

            if (dailyNumbersUpdatedLbl != null)
            {
                dailyNumbersUpdatedLbl.Dispose();
                dailyNumbersUpdatedLbl = null;
            }

            if (DailyNumbersView != null)
            {
                DailyNumbersView.Dispose();
                DailyNumbersView = null;
            }

            if (fhiLogo != null)
            {
                fhiLogo.Dispose();
                fhiLogo = null;
            }

            if (LogInAndRegisterLbl != null)
            {
                LogInAndRegisterLbl.Dispose();
                LogInAndRegisterLbl = null;
            }

            if (MenuIcon != null)
            {
                MenuIcon.Dispose();
                MenuIcon = null;
            }

            if (MenuLabel != null)
            {
                MenuLabel.Dispose();
                MenuLabel = null;
            }

            if (MessageIcon != null)
            {
                MessageIcon.Dispose();
                MessageIcon = null;
            }

            if (MessageLbl != null)
            {
                MessageLbl.Dispose();
                MessageLbl = null;
            }

            if (MessageView != null)
            {
                MessageView.Dispose();
                MessageView = null;
            }

            if (NewIndicatorView != null)
            {
                NewIndicatorView.Dispose();
                NewIndicatorView = null;
            }

            if (NewRegistrationLbl != null)
            {
                NewRegistrationLbl.Dispose();
                NewRegistrationLbl = null;
            }

            if (OnOffBtn != null)
            {
                OnOffBtn.Dispose();
                OnOffBtn = null;
            }

            if (OnOffBtnContainer != null)
            {
                OnOffBtnContainer.Dispose();
                OnOffBtnContainer = null;
            }

            if (Picker != null)
            {
                Picker.Dispose();
                Picker = null;
            }

            if (ScrollDownBackgroundView != null)
            {
                ScrollDownBackgroundView.Dispose();
                ScrollDownBackgroundView = null;
            }

            if (SpinnerDialogButton != null)
            {
                SpinnerDialogButton.Dispose();
                SpinnerDialogButton = null;
            }

            if (SpinnerDialogMessage != null)
            {
                SpinnerDialogMessage.Dispose();
                SpinnerDialogMessage = null;
            }

            if (SpinnerDialogStackView != null)
            {
                SpinnerDialogStackView.Dispose();
                SpinnerDialogStackView = null;
            }

            if (SpinnerDialogTitle != null)
            {
                SpinnerDialogTitle.Dispose();
                SpinnerDialogTitle = null;
            }

            if (SpinnerMainView != null)
            {
                SpinnerMainView.Dispose();
                SpinnerMainView = null;
            }

            if (StatusContainer != null)
            {
                StatusContainer.Dispose();
                StatusContainer = null;
            }

            if (StatusText != null)
            {
                StatusText.Dispose();
                StatusText = null;
            }
        }
Exemple #9
0
 public void Deactivate()
 {
     window.Remove(picker);
     picker.Dispose();
     picker = null;
 }