Example #1
0
        void ReleaseDesignerOutlets()
        {
            if (ShadowView != null)
            {
                ShadowView.Dispose();
                ShadowView = null;
            }

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

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

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

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

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

            if (StartView != null)
            {
                StartView.Dispose();
                StartView = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ContainerView != null)
            {
                ContainerView.Dispose();
                ContainerView = null;
            }

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

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

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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Example #4
0
        void ReleaseDesignerOutlets()
        {
            if (CalendarCollectionView != null)
            {
                CalendarCollectionView.Dispose();
                CalendarCollectionView = null;
            }

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

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

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

            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }
        }
Example #5
0
        private void InitializeGestures()
        {
            _headerImageTapGesture = new UITapGestureRecognizer(() => {
                var context = new ModalViewContext(
                    ModalViewKind.FullscreenImage,
                    ImageBackground.ImageUrl);

                if (ShowHideModalViewCommand != null &&
                    ShowHideModalViewCommand.CanExecute(context))
                {
                    ShowHideModalViewCommand.Execute(context);
                }
            })
            {
                NumberOfTouchesRequired = (uint)1,
                NumberOfTapsRequired    = (uint)1
            };

            ImageBackground.AddGestureRecognizer(_headerImageTapGesture);

            _descriptionTapGesture = new UITapGestureRecognizer(() => {
                if (ExpandCollapseCommand != null &&
                    ExpandCollapseCommand.CanExecute(null))
                {
                    ExpandCollapseCommand.Execute(null);
                }
            })
            {
                NumberOfTouchesRequired = (uint)1,
                NumberOfTapsRequired    = (uint)1
            };

            DescriptionLabel.AddGestureRecognizer(_descriptionTapGesture);
        }
        void ReleaseDesignerOutlets()
        {
            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

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

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

            if (NameLabel != null)
            {
                NameLabel.Dispose();
                NameLabel = null;
            }
        }
 void ReleaseDesignerOutlets()
 {
     if (DescriptionLabel != null)
     {
         DescriptionLabel.Dispose();
         DescriptionLabel = null;
     }
     if (HeightLabel != null)
     {
         HeightLabel.Dispose();
         HeightLabel = null;
     }
     if (NameLabel != null)
     {
         NameLabel.Dispose();
         NameLabel = null;
     }
     if (PokemonImage != null)
     {
         PokemonImage.Dispose();
         PokemonImage = null;
     }
     if (WeightLabel != null)
     {
         WeightLabel.Dispose();
         WeightLabel = null;
     }
 }
Example #8
0
        void ReleaseDesignerOutlets()
        {
            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

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

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

            if (IconImage != null)
            {
                IconImage.Dispose();
                IconImage = null;
            }
        }
Example #9
0
        void ReleaseDesignerOutlets()
        {
            if (CoverImage != null)
            {
                CoverImage.Dispose();
                CoverImage = null;
            }

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

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

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

            if (PictureImage != null)
            {
                PictureImage.Dispose();
                PictureImage = null;
            }
        }
Example #10
0
        void ReleaseDesignerOutlets()
        {
            if (AddButton != null)
            {
                AddButton.Dispose();
                AddButton = null;
            }

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

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

            if (NameLabel != null)
            {
                NameLabel.Dispose();
                NameLabel = null;
            }
        }
Example #11
0
        protected override void SetUpContentView()
        {
            base.SetUpContentView();

            if (CustomCell.ShowArrowIndicator)
            {
                Accessory        = UITableViewCellAccessory.DisclosureIndicator;
                EditingAccessory = UITableViewCellAccessory.DisclosureIndicator;

                SetRightMarginZero();
            }

            StackV.RemoveArrangedSubview(ContentStack);
            StackV.RemoveArrangedSubview(DescriptionLabel);
            ContentStack.RemoveFromSuperview();
            DescriptionLabel.RemoveFromSuperview();

            _coreView = new CustomCellContent();

            if (CustomCell.UseFullSize)
            {
                StackH.RemoveArrangedSubview(IconView);
                IconView.RemoveFromSuperview();

                StackH.LayoutMargins = new UIEdgeInsets(0, 0, 0, 0);
                StackH.Spacing       = 0;
            }

            StackV.AddArrangedSubview(_coreView);
        }
        void ReleaseDesignerOutlets()
        {
            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

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

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

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

            if (StartButton != null)
            {
                StartButton.Dispose();
                StartButton = null;
            }
        }
Example #13
0
        void ReleaseDesignerOutlets()
        {
            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

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

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

            if (RepositoryImageView != null)
            {
                RepositoryImageView.Dispose();
                RepositoryImageView = null;
            }
        }
Example #14
0
        void ReleaseDesignerOutlets()
        {
            if (ContainerView != null)
            {
                ContainerView.Dispose();
                ContainerView = null;
            }

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

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

            if (InputTextField != null)
            {
                InputTextField.Dispose();
                InputTextField = null;
            }
        }
Example #15
0
        void ReleaseDesignerOutlets()
        {
            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

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

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

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

            if (LanguageView != null)
            {
                LanguageView.Dispose();
                LanguageView = null;
            }
        }
Example #16
0
        void ReleaseDesignerOutlets()
        {
            if (ContainerView != null)
            {
                ContainerView.Dispose();
                ContainerView = null;
            }

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

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

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

            if (InputTextField != null)
            {
                InputTextField.Dispose();
                InputTextField = null;
            }
        }
        public override void UpdateVirtual()
        {
            bool multiplePages = MenuTree.Count > MaxEntriesPerPage;

            G.Sys.MenuPanelManager_.SetBottomLeftActionButtonEnabled(InputAction.MenuPageUp, multiplePages);
            G.Sys.MenuPanelManager_.SetBottomLeftActionButtonEnabled(InputAction.MenuPageDown, multiplePages);

            G.Sys.MenuPanelManager_.SetBottomLeftActionButton(InputAction.MenuPageUp, InternalResources.Strings.MenuSystem.MenuActionPrevious);
            G.Sys.MenuPanelManager_.SetBottomLeftActionButton(InputAction.MenuPageDown, InternalResources.Strings.MenuSystem.MenuActionNext);

            if (multiplePages)
            {
                if (InputManager.GetKeyUp(InputAction.MenuPageUp))
                {
                    SwitchPage(-1);
                }

                if (InputManager.GetKeyUp(InputAction.MenuPageDown))
                {
                    SwitchPage(+1);
                }
            }

            Description = string.Format(InternalResources.Strings.MenuSystem.MenuPageDescription, CurrentPageIndex + 1, PageCount);

            TitleLabel?.SetActive(true);
            UILabel TitleLabelObject = TitleLabel.GetComponent <UILabel>();

            (menu_.menuTitleLabel_ ?? TitleLabelObject).text = Title;

            DescriptionLabel?.SetActive(true);
            UILabel DescriptionLabelObject = DescriptionLabel.GetComponent <UILabel>();

            menu_.menuDescriptionLabel_.text_ = DescriptionLabelObject.text = Description;
        }
		public ParameterInformationWindow ()
		{
			heading = new Gtk.Label ("");
			heading.Xalign = 0;
			heading.Wrap = false;
			
			desc = new DescriptionLabel ();
			count = new Gtk.Label ("");

			var mainBox = new HBox (false, 2);
			
			HBox arrowHBox = new HBox ();

			goPrev = new Gtk.Arrow (Gtk.ArrowType.Up, ShadowType.None);
			arrowHBox.PackStart (goPrev, false, false, 0);
			arrowHBox.PackStart (count, false, false, 0);
			goNext = new Gtk.Arrow (Gtk.ArrowType.Down, ShadowType.None);
			arrowHBox.PackStart (goNext, false, false, 0);

			VBox vBox = new VBox ();
			vBox.PackStart (arrowHBox, false, false, 0);
			
			mainBox.PackStart (vBox, false, false, 0);
			mainBox.PackStart (heading, true, true, 0);
			
			var vBox2 = new VBox ();
			vBox2.BorderWidth = 3;
			vBox2.PackStart (mainBox, false, false, 0);
			vBox2.PackStart (desc, true, true, 4);
			Add (vBox2);
			EnableTransparencyControl = true;
			ShowAll ();
		}
        void ReleaseDesignerOutlets()
        {
            if (TitleLabel != null)
            {
                TitleLabel.Dispose();
                TitleLabel = null;
            }

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

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

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

            if (ActivityIndicator != null)
            {
                ActivityIndicator.Dispose();
                ActivityIndicator = null;
            }
        }
Example #20
0
        void ReleaseDesignerOutlets()
        {
            if (CloseOrNotNowButton != null)
            {
                CloseOrNotNowButton.Dispose();
                CloseOrNotNowButton = null;
            }

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

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

            if (UpdateButton != null)
            {
                UpdateButton.Dispose();
                UpdateButton = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ActivatedLabel != null)
            {
                ActivatedLabel.Dispose();
                ActivatedLabel = null;
            }

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

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

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

            if (NavItem != null)
            {
                NavItem.Dispose();
                NavItem = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (ContinueButton != null)
            {
                ContinueButton.Dispose();
                ContinueButton = null;
            }

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

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

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

            if (TimeLabel != null)
            {
                TimeLabel.Dispose();
                TimeLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (CalendarPermissionStatusLabel != null)
            {
                CalendarPermissionStatusLabel.Dispose();
                CalendarPermissionStatusLabel = null;
            }

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

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

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }
        }
        public ParameterInformationWindow()
        {
            heading        = new Gtk.Label("");
            heading.Xalign = 0;
            heading.Wrap   = false;

            desc  = new DescriptionLabel();
            count = new Gtk.Label("");

            var mainBox = new HBox(false, 2);

            HBox arrowHBox = new HBox();

            goPrev = new Gtk.Arrow(Gtk.ArrowType.Up, ShadowType.None);
            arrowHBox.PackStart(goPrev, false, false, 0);
            arrowHBox.PackStart(count, false, false, 0);
            goNext = new Gtk.Arrow(Gtk.ArrowType.Down, ShadowType.None);
            arrowHBox.PackStart(goNext, false, false, 0);

            VBox vBox = new VBox();

            vBox.PackStart(arrowHBox, false, false, 0);

            mainBox.PackStart(vBox, false, false, 0);
            mainBox.PackStart(heading, true, true, 0);

            var vBox2 = new VBox();

            vBox2.BorderWidth = 3;
            vBox2.PackStart(mainBox, false, false, 0);
            vBox2.PackStart(desc, true, true, 4);
            Add(vBox2);
            EnableTransparencyControl = true;
            ShowAll();
        }
Example #25
0
        public ProfileHeader()
        {
            InitializeComponent();
            DescriptionLabel.AddHandler(ContextRequestedEvent, new TypedEventHandler <UIElement, ContextRequestedEventArgs>(About_ContextRequested), true);

            DataContextChanged += OnDataContextChanged;
        }
Example #26
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            TitleLabel.SetBinding(v => v.Text, ViewModel.Title);
            DescriptionLabel.SetBinding(v => v.Text, ViewModel.Description);
        }
        void ReleaseDesignerOutlets()
        {
            if (DescriptionFadeView != null)
            {
                DescriptionFadeView.Dispose();
                DescriptionFadeView = null;
            }

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

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

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

            if (ProjectLabel != null)
            {
                ProjectLabel.Dispose();
                ProjectLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (BackgroundView != null)
            {
                BackgroundView.Dispose();
                BackgroundView = null;
            }

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

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

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }
        }
Example #29
0
        void ReleaseDesignerOutlets()
        {
            if (DoneButton != null)
            {
                DoneButton.Dispose();
                DoneButton = null;
            }

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

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

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }
        }
Example #30
0
        void ReleaseDesignerOutlets()
        {
            if (DoNotShowAgainButton != null)
            {
                DoNotShowAgainButton.Dispose();
                DoNotShowAgainButton = null;
            }

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

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

            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }
        }
        void ReleaseDesignerOutlets()
        {
            if (DescriptionLabel != null)
            {
                DescriptionLabel.Dispose();
                DescriptionLabel = null;
            }

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

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

            if (ProjectLabel != null)
            {
                ProjectLabel.Dispose();
                ProjectLabel = null;
            }
        }
        public ProfileComboBoxConfigurable(MediaProfileManager manager, string configurationId, Box parent)
        {
            HBox editor = new HBox();

            configuration_id = configurationId;
            combo = new ProfileComboBox(manager);
            combo.Show();

            button = new ProfileConfigureButton(configurationId);
            button.ComboBox = combo;
            button.Show();

            editor.Spacing = 5;
            editor.PackStart(combo, true, true, 0);
            editor.PackStart(button, false, false, 0);
            editor.Show();

            ProfileConfiguration config = manager.GetActiveProfileConfiguration (configurationId);

            if (config != null) {
                Combo.SetActiveProfile(config.Profile);
            }

            description = new DescriptionLabel (delegate {
                var profile = Combo.ActiveProfile;
                return profile != null ? profile.Description : "";
            });

            Combo.Changed += delegate {
                if(Combo.ActiveProfile != null) {
                    Hyena.Log.DebugFormat ("Setting active encoding profile: {0} (saved to {1})",
                        Combo.ActiveProfile.Name, configurationId);
                    ProfileConfiguration.SaveActiveProfile (Combo.ActiveProfile, configurationId);
                    description.Update ();
                }
            };

            Combo.StateChanged += delegate {
                if (Combo.State == StateType.Insensitive) {
                    ((Container)parent ?? this).Remove (description);
                } else {
                    description.PackInto (parent ?? this, parent != null);
                }
            };

            Spacing = 5;
            PackStart (editor, true, true, 0);
            description.PackInto (parent ?? this, parent != null);
        }
Example #33
0
        private static Widget GetWidget(PreferenceBase preference, Type type)
        {
            Widget pref_widget = null;
            Widget widget = null;
            if (type == typeof (bool)) {
                pref_widget = new PreferenceCheckButton (preference);
            } else if (type == typeof (string)) {
                pref_widget = new PreferenceEntry (preference);
            } else if (type == typeof (int)) {
                var schema_preference = preference as SchemaPreference<int>;
                if (schema_preference == null) {
                    pref_widget = new PreferenceSpinButton (preference);
                } else {
                    pref_widget = new PreferenceSpinButton (preference, schema_preference.MinValue, schema_preference.MaxValue);
                }
            }

            if (pref_widget != null) {
                pref_widget.Sensitive = preference.Sensitive;
                pref_widget.Visible = preference.Visible;

                DescriptionLabel label = null;
                if (preference.ShowDescription) {
                    VBox box = new VBox ();
                    box.PackStart (pref_widget, false, false, 0);
                    label = new DescriptionLabel (preference.Description);
                    label.Visible = !String.IsNullOrEmpty (preference.Description);
                    label.PackInto (box, false);
                    widget = box;
                }

                preference.Changed += delegate (Root pref) {
                    ThreadAssist.ProxyToMain (delegate {
                        pref_widget.Sensitive = pref.Sensitive;
                        pref_widget.Visible = pref.Visible;
                        /*if (label != null) {
                            label.Text = pref.Description;
                            label.Visible = !String.IsNullOrEmpty (preference.Description);
                        }*/

                        if (pref_widget is PreferenceCheckButton) {
                            (pref_widget as PreferenceCheckButton).Label = pref.Name;
                        }
                    });
                };
            }

            return widget ?? pref_widget;
        }
        private void OnPreferencesServiceInstallWidgetAdapters(object o, EventArgs args)
        {
            if (dimensions == null) {
                return;
            }

            var description_label = new DescriptionLabel (AddinManager.CurrentLocalizer.GetString (
                "For changes to these values to take effect, you need to restart Banshee"));
            dimensions["dimensions-desc"].ShowLabel = false;
            dimensions["dimensions-desc"].DisplayWidget = description_label;
        }