コード例 #1
0
        void ReleaseDesignerOutlets()
        {
            if (BackButton != null)
            {
                BackButton.Dispose();
                BackButton = null;
            }

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

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

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

            if (ScrollView != null)
            {
                ScrollView.Dispose();
                ScrollView = null;
            }
        }
コード例 #2
0
        void ReleaseDesignerOutlets()
        {
            if (SearchFieldCell != null)
            {
                SearchFieldCell.Dispose();
                SearchFieldCell = null;
            }

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

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

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

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

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

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

            if (ShowServerInfoToolBarItem != null)
            {
                ShowServerInfoToolBarItem.Dispose();
                ShowServerInfoToolBarItem = null;
            }
        }
コード例 #3
0
        public void CustomViewConstructor()
        {
            tlog.Debug(tag, $"CustomViewConstructor START");

            ViewStyle style = new ViewStyle()
            {
                Padding = new Extents(3, 3, 3, 3),
            };

            var testingTarget = new CustomView("CustomView", CustomViewBehaviour.ViewBehaviourDefault, style);

            Assert.IsNotNull(testingTarget, "Can't create success object CustomView");
            Assert.IsInstanceOf <CustomView>(testingTarget, "Should be an instance of CustomView type.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"CustomViewConstructor END (OK)");
        }
コード例 #4
0
        void ReleaseDesignerOutlets()
        {
            if (CustomView != null)
            {
                CustomView.Dispose();
                CustomView = null;
            }

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

            if (PanelButton != null)
            {
                PanelButton.Dispose();
                PanelButton = null;
            }
        }
コード例 #5
0
        public void CustomViewFocusNavigationSupport()
        {
            tlog.Debug(tag, $"CustomViewFocusNavigationSupport START");

            ViewStyle style = new ViewStyle()
            {
                Padding = new Extents(3, 3, 3, 3),
            };

            var testingTarget = new CustomView("CustomView", CustomViewBehaviour.ViewBehaviourDefault, style);

            Assert.IsNotNull(testingTarget, "Can't create success object CustomView");
            Assert.IsInstanceOf <CustomView>(testingTarget, "Should be an instance of CustomView type.");

            Assert.AreEqual(false, testingTarget.FocusNavigationSupport, "Should be equal!");

            testingTarget.FocusNavigationSupport = true;
            Assert.AreEqual(true, testingTarget.FocusNavigationSupport, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"CustomViewFocusNavigationSupport END (OK)");
        }