public SpecialEpisodeFormControl()
        {
            this.InitializeComponent();

            this.WhenActivated(disposables =>
            {
                this.WhenAnyValue(v => v.ViewModel)
                .BindTo(this, v => v.DataContext)
                .DisposeWith(disposables);

                foreach (string month in Properties.MonthNames)
                {
                    this.MonthComboBox.Items.Add(month);
                }

                this.ViewModel !.FormTitle
                .BindTo(this, v => v.FormTitleTextBlock.Text)
                .DisposeWith(disposables);

                this.YearTextBox.DisposeWith(disposables);

                this.LoadPoster();

                this.BindCommands(disposables);
                this.BindCheckboxes(disposables);
                this.BindLink(disposables);
                this.BindFields(disposables);

                this.AddValidation(disposables);
            });
        }
Beispiel #2
0
        public SeriesFormControl()
        {
            this.InitializeComponent();

            this.WhenActivated(disposables =>
            {
                this.WhenAnyValue(v => v.ViewModel)
                .BindTo(this, v => v.DataContext)
                .DisposeWith(disposables);

                this.ViewModel !.FormTitle
                .BindTo(this, v => v.FormTitleTextBlock.Text)
                .DisposeWith(disposables);

                this.LoadPoster();

                this.BindCommands(disposables);
                this.BindLinks(disposables);
                this.BindFields(disposables);
                this.BindTags(disposables);

                this.OneWayBind(this.ViewModel, vm => vm.Components, v => v.Components.ItemsSource)
                .DisposeWith(disposables);

                this.AddValidation(disposables);
            });
        }
Beispiel #3
0
    public MovieFormControl()
    {
        this.InitializeComponent();

        this.WhenActivated(disposables =>
        {
            this.WhenAnyValue(v => v.ViewModel)
            .BindTo(this, v => v.DataContext)
            .DisposeWith(disposables);

            this.ViewModel !.FormTitle
            .BindTo(this, v => v.FormTitleTextBlock.Text)
            .DisposeWith(disposables);

            this.LoadPoster();

            this.BindCommands(disposables);
            this.BindCheckboxes(disposables);
            this.BindLinks(disposables);
            this.BindFields(disposables);
            this.BindTags(disposables);

            this.AddValidation(disposables);
        });
    }
Beispiel #4
0
        public virtual void Visit(FormTitle formTitle, HtmlContainer htmlContainer)
        {
            HtmlDiv htmlDiv = verbose ? new HtmlDiv(formTitle.Path) : new HtmlDiv();

            htmlDiv.Class.Add("formTitle");

            if (!string.IsNullOrWhiteSpace(formTitle.CssClass))
            {
                htmlDiv.Class.AddRange(formTitle.CssClass.Split(' ').Where(s => s != string.Empty));
            }

            if (!string.IsNullOrWhiteSpace(formTitle.Path))
            {
                htmlDiv.Class.Add(string.Format("{0}{1}", "formId", formTitle.Path));
            }

            htmlDiv.Hidden.Value = formTitle.IsHidden;

            htmlContainer.Add(htmlDiv);

            HtmlLabel htmlLabel = new HtmlLabel(verbose ? formTitle.Path : string.Empty);

            htmlDiv.Add(htmlLabel);

            htmlLabel.Add(new HtmlText(formTitle.Content));
        }
Beispiel #5
0
        public virtual void Visit(FormTitle formTitle, HtmlContainer htmlContainer)
        {
            HtmlDiv htmlDiv = verbose ? new HtmlDiv(formTitle.Path) : new HtmlDiv();

            htmlDiv.Class.Add("formTitle");

            if (!string.IsNullOrWhiteSpace(formTitle.CssClass))
            {
                htmlDiv.Class.AddRange(formTitle.CssClass.Split(' ').Where(s => s != string.Empty));
            }

            htmlDiv.Class.Add("card-title");

            if (!string.IsNullOrWhiteSpace(formTitle.Path))
            {
                htmlDiv.Class.Add(string.Format("{0}{1}", "formId", formTitle.Path));
            }

            htmlDiv.Hidden.Value = formTitle.IsHidden;

            htmlContainer.Add(htmlDiv);

            HtmlH3 htmlH3 = new HtmlH3();

            htmlDiv.Add(htmlH3);

            htmlH3.Add(new HtmlText(formTitle.Content));

            HtmlHR htmlHR = new HtmlHR();

            htmlHR.Class.AddRange(new string[] { "m-0", "mb-3" });
            htmlDiv.Add(htmlHR);
        }
Beispiel #6
0
 public void CreateNewPatientForm()
 {
     FormName.SendKeys(Constant.fieldName);
     utility.ClickDropdownAndEnter(FormSelectDepartment);
     utility.ClickDropdownAndEnter(FormSelectCategory);
     FormTitle.SendKeys(Constant.fieldName);
     FillFormWithComponents();
     SaveForm.ClickOn();
     softAssert.VerifySuccessMsg();
 }
Beispiel #7
0
 public virtual void Visit(FormTitle formTitle)
 {
     sb.AppendLine();
     sb.AppendLine(formTitle.Value.Trim());
 }
        public virtual void Visit(FormTitle formTitle)
        {
            sb.AppendLine(string.Format("{0}<b>{1}</b><br><br>", titlesVisited > 0 ? "<br>" : "", formTitle.Value.Trim()));

            titlesVisited++;
        }