Exemple #1
0
 public TitleView GetCharacterBackpack(int id, string characterName)
 {
     using (var ctx = new ApplicationDbContext())
     {
         foreach (Backpack backpack in ctx.Backpacks.AsNoTracking().Where(b => b.CharacterID == id).ToList())
         {
             var query = ctx.Items
                         .AsNoTracking()
                         .Where(i => i.ItemID == backpack.ItemID)
                         .Select(
                 i =>
                 new CharacterBackpackList
             {
                 ItemID          = i.ItemID,
                 CharacterName   = backpack.Character.CharacterName,
                 ItemType        = i.ItemType,
                 ItemName        = i.ItemName,
                 ItemDescription = i.ItemDescription,
                 ItemValue       = i.ItemValue,
                 Currency        = i.Currency,
                 BackpackID      = backpack.BackpackID,
             }
                 );
             _queryableList = query.ToList();
             foreach (var item in _queryableList)
             {
                 _characterBackpackItems.Add(item);
             }
         }
         TitleView titleView = new TitleView();
         titleView.BackpackItemList = _characterBackpackItems;
         titleView.CharacterName    = characterName;
         return(titleView);
     }
 }
Exemple #2
0
 public ViewManager(ShipView shipView,
                    CrashEffectView crashEffectView,
                    IMoveViewModel moveViewModel,
                    FuelView fuelView,
                    EndGameMessageView endGameMessageView,
                    StartButtonView startButtonView,
                    ExitButtonView exitButtonView,
                    TitleView titleView,
                    IHitListener hitListener,
                    IFuelViewModel fuelViewModel,
                    IGameManager gameManager)
 {
     _shipView                   = shipView;
     _crashEffectView            = crashEffectView;
     _moveViewModel              = moveViewModel;
     _fuelView                   = fuelView;
     _endGameMessageView         = endGameMessageView;
     _startButtonView            = startButtonView;
     _exitButtonView             = exitButtonView;
     _titleView                  = titleView;
     _fuelViewModel              = fuelViewModel;
     _crashAssessmentViewModel   = hitListener.CrashAssessment;
     _landingAssessmentViewModel = hitListener.LandingAssessment;
     _gameManager                = gameManager;
 }
Exemple #3
0
        public TitleController(TitleView view, TitleModel model, SceneTransitionService sceneTransitionService, AudioService audioService)
            : base(view)
        {
            _view = view;
            _view.Initialize();

            _model                  = model;
            _audioService           = audioService;
            _sceneTransitionService = sceneTransitionService;

            _view.OnStartClicked
            .Subscribe(_ => OnStartClicked())
            .AddTo(Disposer);

            _view.OnSettingsClicked
            .Subscribe(_ => _model.OpenSettings.Execute())
            .AddTo(Disposer);

            _view.OnCreditsClicked
            .Subscribe(_ => _model.OpenCredits.Execute())
            .AddTo(Disposer);

            _view.OnTutorialClicked
            .Subscribe(_ => _model.OpenTutorial.Execute())
            .AddTo(Disposer);
        }
Exemple #4
0
    protected override void OnUpdate()
    {
        base.OnUpdate();
        if (MissionManager.instance == null || UiManager.Instance.missionMainWindow == null)
        {
            return;
        }

        if (TitleView == null)
        {
            createTitleView();
        }

        if (activeAnimCtrl != null)
        {
            idleCheck();
            activeAnimCtrl.transform.rotation = Quaternion.Slerp(activeAnimCtrl.transform.rotation, TargetRotation, Time.deltaTime * 12f);
        }

        TitleView.UpdatePos(transform.position, isCycling);
//		if (isMove) {
//			Vector3 distanceV = transform.position - lastPosition;
//			distanceV = new Vector3 (-distanceV.x * 0.003f, 0, -distanceV.z * 0.003f);
//			MissionManager.instance.roadEnvironmentCameraT.position += distanceV;
//		}
    }
        public IssuesController(string user, string slug)
            : base(typeof(List<IssueModel>))
        {
            User = user;
            Slug = slug;
            Style = UITableViewStyle.Plain;
            Title = "Issues";
            EnableSearch = true;
            EnableFilter = true;
            Root.UnevenRows = true;
            SearchPlaceholder = "Search Issues";

            NavigationItem.RightBarButtonItem = new UIBarButtonItem(NavigationButton.Create(CodeFramework.Images.Buttons.Add, () => {
                var b = new IssueEditController {
                    Username = User,
                    RepoSlug = Slug,
                    Success = OnCreateIssue
                };
                NavigationController.PushViewController(b, true);
            }));

            _titleView = new TitleView();
            RefreshCaption();
            NavigationItem.TitleView = _titleView;

            _loadMore = new PaginateElement("Load More", "Loading...", e => GetMore());
        }
Exemple #6
0
        void ReleaseDesignerOutlets()
        {
            if (BackgroundButton != null)
            {
                BackgroundButton.Dispose();
                BackgroundButton = null;
            }

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

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

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

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

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

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

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

            if (TitleView != null)
            {
                TitleView.Dispose();
                TitleView = null;
            }
        }
Exemple #7
0
        /// <summary>
        /// User has clicked a title.
        /// </summary>
        /// <param name="sender">Sender of event</param>
        /// <param name="e">Event arguments</param>
        private void OnTitleClick(object sender, EventArgs e)
        {
            TitlePresenter titlePresenter = new TitlePresenter();

            CurrentPresenter = titlePresenter;

            TitleView t = new TitleView();

            GraphView.ShowEditorPanel(t);
            titlePresenter.Attach(Graph, t, ExplorerPresenter);
        }
Exemple #8
0
        /// <summary>User has clicked a footer.</summary>
        /// <param name="sender">Sender of event</param>
        /// <param name="e">Event arguments</param>
        private void OnCaptionClick(object sender, EventArgs e)
        {
            TitlePresenter titlePresenter = new TitlePresenter();

            currentPresenter           = titlePresenter;
            titlePresenter.ShowCaption = true;

            TitleView t = new TitleView();

            graphView.ShowEditorPanel(t);
            titlePresenter.Attach(graph, t, explorerPresenter);
        }
Exemple #9
0
    private void OnInitTitleProcess()
    {
        SoundManager.Instance.PlayBgm(BgmType.Title);
        if (_titleView == null)
        {
            _titleView = ResourceManager.Instance.InstantiateView <TitleView>(_mainCanvas);
        }
        HideAllView();
        _titleView.gameObject.SetActive(true);
        _titleView.InitView(ChangeState);

        ChangeState(GameState.UpdateTitle);
    }
Exemple #10
0
    public static void Main()
    {
        var tv = new TitleView();

        tv.ShowFront();

        var nicC = new NicController();

        nicC.Run();

        var ev = new EndView();

        ev.ShowEnd();
    }
Exemple #11
0
 public void Save(TitleView viewTable)
 {
     if (viewTable.Id == null)
     {
         var domainTable = new TitleTable();
         Mapper.Map(viewTable, domainTable);
         SaveDomain(domainTable);
     }
     else
     {
         var domainTable = Find(viewTable.Id);
         Mapper.Map(viewTable, domainTable);
         SaveDomain(domainTable);
     }
 }
Exemple #12
0
 void createTitleView()
 {
     TitleView = NpcTitleView.Create();
     TitleView.UpdateName(UserManager.Instance.self.nickname, UserManager.Instance.self.vipLevel, UserManager.Instance.self.uid);
     if (UserManager.Instance.self.prestige > 0)
     {
         LaddersTitleSample sample_1 = LaddersConfigManager.Instance.config_Title.M_getTitle(UserManager.Instance.self.prestige);
         LaddersMedalSample sample_2 = LaddersConfigManager.Instance.config_Medal.M_getMedalBySid(LaddersManagement.Instance.currentPlayerMedalSid);
         TitleView.UpdatePlayerTitle(true, sample_1, sample_2);
     }
     else
     {
         TitleView.UpdatePlayerTitle(false, null, null);
     }
 }
Exemple #13
0
 void createTitleView()
 {
     TitleView = NpcTitleView.Create();
     TitleView.UpdateName(data.name, data.vipLevel, data.uid);
     if (data.titleSid > 1)
     {
         LaddersTitleSample sample_1 = LaddersConfigManager.Instance.config_Title.M_getTitleBySid(data.titleSid);
         LaddersMedalSample sample_2 = LaddersConfigManager.Instance.config_Medal.M_getMedalBySid(data.medalSid);
         TitleView.UpdatePlayerTitle(true, sample_1, sample_2);
     }
     else
     {
         TitleView.UpdatePlayerTitle(false, null, null);
     }
 }
Exemple #14
0
        /// <summary>User has clicked a footer.</summary>
        /// <param name="sender">Sender of event</param>
        /// <param name="e">Event arguments</param>
        private void OnCaptionClick(object sender, EventArgs e)
        {
            if (currentPresenter != null)
            {
                currentPresenter.Detach();
            }
            TitlePresenter titlePresenter = new TitlePresenter();

            currentPresenter           = titlePresenter;
            titlePresenter.ShowCaption = true;

            TitleView t = new TitleView(graphView as GraphView);

            graphView.ShowEditorPanel(t.MainWidget, "Title options");
            titlePresenter.Attach(graph, t, explorerPresenter);
        }
Exemple #15
0
        public ActionResult Edit(TitleView model)
        {
            if (ModelState.IsValid)
            {
                try
                {
                    _Service.Save(model);
                    return(RedirectToAction("Index"));
                }
                catch (Exception e)
                {
                    ModelState.AddModelError(string.Empty, e.GetOriginalException().Message);
                }
            }

            ViewBag.ProfileList = _ProfileService.GetDropListProfileNull(model.ProfileTableId);
            return(View(model));
        }
Exemple #16
0
    void ShowTitle()
    {
        TitleView view = null;

        view = TitleView.Show(uiParent,
                              (_level) => {
            GetTitleData((_data) => {
                titleData = _data;
                inGame.StartGame(_level, new TitleConstData(titleData));
                Destroy(view.gameObject);
            });
        },
                              () => {
            ResultView resultView = null;
            resultView            = ResultView.Show(uiParent, () => {
                ShowTitle();
                Destroy(resultView.gameObject);
            });
            Destroy(view.gameObject);
        });
    }
Exemple #17
0
    protected override void OnUpdate()
    {
        if (data == null || MissionManager.instance == null || UiManager.Instance.missionMainWindow == null)
        {
            return;
        }

        if (TitleView == null)
        {
            createTitleView();
        }
        //旋转角色
        if (data != null && data.state != -1)
        {
            transform.rotation = Quaternion.Slerp(transform.rotation, TargetRotation, Time.deltaTime * 12f);
        }

        //更新名字位置
        if (TitleView != null)
        {
            TitleView.UpdatePos(transform.position, isCycling);
        }
    }
        public async Task ShowAnimatedViews()
        {
            while (true)
            {
                ViewModel.SharedData.TitleAnimationState = TitleAnimationStatus.Playing;

                await TitleView.FadeTo(1, 2000, Easing.Linear);

                await TitleView.FadeTo(1, ViewModel.SharedData.TITLEVIEW_DISPLAY_INTERVAL, Easing.Linear);                 //stay for 10 sec

                await TitleView.FadeTo(0, 2000, Easing.Linear);

                await TitleView.FadeTo(0, 2000, Easing.Linear);                 //wait for 2 sec

                await NextShowView.FadeTo(1, 2000, Easing.Linear);

                await NextShowView.FadeTo(1, ViewModel.SharedData.NEXTVIEW_DISPLAY_INTERVAL, Easing.Linear);

                await NextShowView.FadeTo(0, 2000, Easing.Linear);

                await NextShowView.FadeTo(0, ViewModel.SharedData.HIDETITLES_DISPLAY_INTERVAL, Easing.Linear);                 //wait 10 seconds
            }
        }
 public TitleViewAll(TitleView view, List <int> categories, List <int> authors)
 {
     this.Title      = view;
     this.Categories = categories;
     this.Authors    = authors;
 }
Exemple #20
0
        void ReleaseDesignerOutlets()
        {
            if (BackgroundButton != null)
            {
                BackgroundButton.Dispose();
                BackgroundButton = null;
            }

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

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

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

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

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

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

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

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

            if (TitleView != null)
            {
                TitleView.Dispose();
                TitleView = null;
            }
        }
        public override View Run()
        {
            var scrollview = new Tizen.UIExtensions.NUI.ScrollView();

            scrollview.ContentContainer.Layout = new LinearLayout
            {
                VerticalAlignment   = VerticalAlignment.Center,
                HorizontalAlignment = HorizontalAlignment.Center,
                LinearOrientation   = LinearLayout.Orientation.Vertical,
            };

            var view = scrollview.ContentContainer;

            view.UpdateBackgroundColor(TColor.FromHex("#eeeeee"));

            view.Add(new TitleView
            {
                Title = "Title view 1",
                Icon  = new MaterialIconButton
                {
                    Icon       = MaterialIcons.ArrowBack,
                    SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                    SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
                    Color      = TColor.White
                },
                Actions =
                {
                    new MaterialIconButton
                    {
                        Icon       = MaterialIcons.MoreVert,
                        SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                        SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
                        Color      = TColor.White
                    },
                }
            });

            view.Add(new View
            {
                SizeHeight = 20,
            });

            var title2 = new TitleView
            {
                Title = "Title view 2"
            };

            title2.UpdateBackgroundColor(TColor.White);
            title2.Label.TextColor = TColor.Black;
            title2.Icon            = new MaterialIconButton
            {
                Icon       = MaterialIcons.Menu,
                SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
            };
            title2.Actions.Add(new MaterialIconButton
            {
                Icon       = MaterialIcons.Close,
                SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
            });


            view.Add(title2);

            view.Add(new View
            {
                SizeHeight = 20,
            });

            var title3 = new TitleView();

            title3.UpdateBackgroundColor(TColor.FromHex("6200EE"));
            title3.Icon = new MaterialIconButton
            {
                Icon       = MaterialIcons.ArrowBack,
                Color      = TColor.White,
                SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
            };
            title3.Content = new Tizen.UIExtensions.NUI.Entry
            {
                PlaceholderText       = "Search",
                PlaceholderColor      = TColor.FromHex("#222222"),
                VerticalTextAlignment = TextAlignment.Center,
                HeightSpecification   = LayoutParamPolicies.MatchParent,
                WidthSpecification    = LayoutParamPolicies.MatchParent,
                Margin = new Extents(0, 10, 5, 5),
            };
            title3.Content.UpdateBackgroundColor(TColor.FromHex("#eeeeee"));
            title3.Icon = new MaterialIconButton
            {
                Icon       = MaterialIcons.Check,
                SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
                Color      = TColor.White,
            };
            view.Add(title3);


            view.Add(new View
            {
                SizeHeight = 20,
            });

            var title4 = new TitleView();

            title4.UpdateBackgroundColor(TColor.FromHex("6200EE"));
            title4.Icon = new MaterialIconButton
            {
                Icon       = MaterialIcons.ArrowBack,
                Color      = TColor.White,
                SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
            };
            title4.Content = new Tizen.UIExtensions.NUI.Entry
            {
                PlaceholderText       = "Search",
                PlaceholderColor      = TColor.FromHex("#222222"),
                VerticalTextAlignment = TextAlignment.Center,
                HeightSpecification   = LayoutParamPolicies.MatchParent,
                WidthSpecification    = LayoutParamPolicies.MatchParent,
                Margin = new Extents(0, 10, 5, 5),
            };
            title4.Content.UpdateBackgroundColor(TColor.FromHex("#eeeeee"));
            title4.Icon = new MaterialIconButton
            {
                Icon       = MaterialIcons.Menu,
                SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
                Color      = TColor.White,
            };
            title4.Actions.Add(new MaterialIconButton
            {
                Icon       = MaterialIcons.Check,
                SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
                Color      = TColor.White,
            });
            title4.Actions.Add(new MaterialIconButton
            {
                Icon       = MaterialIcons.Close,
                SizeWidth  = (float)(25 * DeviceInfo.ScalingFactor),
                SizeHeight = (float)(25 * DeviceInfo.ScalingFactor),
                Color      = TColor.White,
            });
            view.Add(title4);

            return(scrollview);
        }
Exemple #22
0
        void LayoutSubViews()
        {
            if (BookInfo == null)
            {
                return;
            }

            //calculate the subview size
            CGSize infoViewSize     = InformationView.Frame.Size;
            CGSize whatsNewViewSize = WhatNewView.Frame.Size;

            CGSize casesViewSize;

            if (CaseView.Hidden)
            {
                casesViewSize = new CGSize(0, 0);
            }
            else
            {
                casesViewSize = CaseView.Frame.Size;
            }

            CGSize despViewSize = DescriptionView.Frame.Size;

            CGSize expiredViewSize;

            if (BookInfo.DaysRemaining < 0)
            {
                expiredViewSize = ExpiredView.Frame.Size;
            }
            else
            {
                expiredViewSize = new CGSize(0, 0);
            }

            CGSize titleViewSize = TitleView.Frame.Size;

            //set scrollview contentview size
            nfloat caseSpace   = casesViewSize.Height == 0 ? 0 : VERTICAL_SPACING;
            nfloat expirdSpace = expiredViewSize.Height == 0 ? 0 : VERTICAL_SPACING;
            nfloat height      = VERTICAL_SPACING +
                                 infoViewSize.Height + VERTICAL_SPACING +
                                 whatsNewViewSize.Height + VERTICAL_SPACING +
                                 casesViewSize.Height + caseSpace +
                                 despViewSize.Height + VERTICAL_SPACING +
                                 expiredViewSize.Height + expirdSpace +
                                 titleViewSize.Height;

            CGRect scrollFrame = ScrollView.Frame;

            nfloat contentHeight = scrollFrame.Bottom > height ? scrollFrame.Bottom : height;

            var contentSize = new CGSize(AContentView.Frame.Size.Width, contentHeight);

            AContentView.SetFrameSize(contentSize);

            //add subview to document view
            var docView = (NSView)ScrollView.DocumentView;

            docView.SetFrameSize(contentSize);

            foreach (NSView view in docView.Subviews)
            {
                view.RemoveFromSuperview();
            }

            docView.AddSubview(AContentView);
            AContentView.SetFrameOrigin(new CGPoint(0, 0));

            //recalulate subviews origin point
            nfloat startOffset = scrollFrame.Bottom >= height ? (scrollFrame.Bottom - height + VERTICAL_SPACING) : VERTICAL_SPACING;
            nfloat yOffset;

            var InfoViewPoint = InformationView.Frame.Location;

            InfoViewPoint.Y = startOffset;
            InformationView.SetFrameOrigin(InfoViewPoint);

            var WhatsViewPoint = new CGPoint(InfoViewPoint.X, InfoViewPoint.Y + infoViewSize.Height + VERTICAL_SPACING);

            WhatNewView.SetFrameOrigin(WhatsViewPoint);

            var CaseViewPoint = new CGPoint(InfoViewPoint.X, WhatsViewPoint.Y + whatsNewViewSize.Height + VERTICAL_SPACING);

            CaseView.SetFrameOrigin(CaseViewPoint);

            if (casesViewSize.Height > 0)
            {
                yOffset = VERTICAL_SPACING;
            }
            else
            {
                yOffset = 0;
            }

            var DesViewPoint = new CGPoint(InfoViewPoint.X, CaseViewPoint.Y + casesViewSize.Height + yOffset);

            DescriptionView.SetFrameOrigin(DesViewPoint);

            var ExpireViewPoint = new CGPoint(InfoViewPoint.X, DesViewPoint.Y + despViewSize.Height + VERTICAL_SPACING);

            ExpiredView.SetFrameOrigin(ExpireViewPoint);

            if (expiredViewSize.Height > 0)
            {
                yOffset = VERTICAL_SPACING;
            }
            else
            {
                yOffset = 0;
            }

            var TitleViewPoint = new CGPoint(InfoViewPoint.X, ExpireViewPoint.Y + expiredViewSize.Height + yOffset);

            TitleView.SetFrameOrigin(TitleViewPoint);

            ScrollToTop();
        }
Exemple #23
0
        void ReleaseDesignerOutlets()
        {
            if (AContentView != null)
            {
                AContentView.Dispose();
                AContentView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            if (TopView != null)
            {
                TopView.Dispose();
                TopView = null;
            }
        }
Exemple #25
0
        public TitleView GetNewModel()
        {
            TitleView model = new TitleView();

            return(model);
        }
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            View.BackgroundColor             = UIColor.White;
            ExtendedLayoutIncludesOpaqueBars = false;
            EdgesForExtendedLayout           = UIRectEdge.None;

            var imageView = new ImageView();

            imageView.TranslatesAutoresizingMaskIntoConstraints = false;
            imageView.SetContentCompressionResistancePriority((float)UILayoutPriority.DefaultLow, UILayoutConstraintAxis.Vertical);
            imageView.SetContentCompressionResistancePriority((float)UILayoutPriority.DefaultLow, UILayoutConstraintAxis.Horizontal);

            var titleView = new TitleView();

            titleView.TranslatesAutoresizingMaskIntoConstraints = false;
            titleView.Title = viewModel.Title;
            titleView.SetContentCompressionResistancePriority((float)UILayoutPriority.Required, UILayoutConstraintAxis.Vertical);
            titleView.SetContentCompressionResistancePriority((float)UILayoutPriority.Required, UILayoutConstraintAxis.Horizontal);

            var attributesView = new AttributesView();

            attributesView.TranslatesAutoresizingMaskIntoConstraints = false;
            attributesView.NumberOfAttributes = viewModel.NumberOfAttributes;
            attributesView.SetContentCompressionResistancePriority((float)UILayoutPriority.Required, UILayoutConstraintAxis.Vertical);
            attributesView.SetContentCompressionResistancePriority((float)UILayoutPriority.Required, UILayoutConstraintAxis.Horizontal);

            for (int i = 0; i < attributesView.AttributesNamesColumn.Labels.Count; i++)
            {
                var attributeViewModel = viewModel.Atrribute(i);
                attributesView.AttributesNamesColumn.Labels[i].Text = attributeViewModel.AttributeName;
            }
            for (int i = 0; i < attributesView.AttributesValuesColumn.Labels.Count; i++)
            {
                var attributeViewModel = viewModel.Atrribute(i);
                attributesView.AttributesNamesColumn.Labels[i].Text = attributeViewModel.AttributeValue;
            }

            stackView.AddArrangedSubview(imageView);
            stackView.AddArrangedSubview(titleView);
            stackView.AddArrangedSubview(attributesView);
            stackView.Axis         = UILayoutConstraintAxis.Vertical;
            stackView.Distribution = UIStackViewDistribution.Fill;
            stackView.TranslatesAutoresizingMaskIntoConstraints = false;

            View.AddSubview(scrollView);
            scrollView.TranslatesAutoresizingMaskIntoConstraints = false;
            scrollView.AlwaysBounceVertical = true;
            scrollView.AddSubview(stackView);

            stackView.TopAnchor.ConstraintEqualTo(scrollView.TopAnchor).Active = true;
            stackView.HeightAnchor.ConstraintEqualTo(View.HeightAnchor).Active = true;
            stackView.WidthAnchor.ConstraintEqualTo(View.WidthAnchor).Active   = true;

            this.SetActiveNavigationItemTitle(viewModel.Title);

            View.SetNeedsLayout();
            View.LayoutIfNeeded();

            imageView.CustomImage = viewModel.ThumbnailImage(new CGSize(imageView.Bounds.Width, imageView.Bounds.Height));
        }
Exemple #27
0
 private void Title_Click(object sender, RoutedEventArgs e)
 {
     DataContext = new TitleView();
 }
Exemple #28
0
 protected BaseAiTitledCell(AContext context, Cell cell) : base(context, cell)
 {
     ContentView = CreateContentView(Resource.Layout.CellLayout);
     _CellLayout = Layout();
     _Title      = BaseTextView.Create <TitleView>(ContentView, this, Resource.Id.CellTitle);
 }
Exemple #29
0
 public ViewTitleFullField(TitleView view, List <string> categories, List <string> authors)
 {
     this.Title      = view;
     this.Categories = categories;
     this.Authors    = authors;
 }