Example #1
0
        public void Init(ForumsNewTopicNavigationArgs args)
        {
            Answers.Clear();
            var model = new ForumTopicQestionModel {
                Removable = false
            };

            model.AnswerChanged += ModelOnAnswerChanged;
            Answers.Add(model);
            Question  = null;
            _prevArgs = args;
            if (args.BoardType != null)
            {
                Header = $"Post New Topic in {args.BoardType.GetDescription()}";
            }
            else if (args.TopicType != null)
            {
                Header = $"Post New Topic in {args.Title}";
            }
            else
            {
                Header = $"Post New topic in {args.ClubName} club";
            }
        }
Example #2
0
 public ForumNewTopicPageFragment(ForumsNewTopicNavigationArgs args)
 {
     _args = args;
 }