Title / Description
Code namespace InfoPathFormPrinterWebService { /// <summary> /// Represents a view in the InfoPath Form /// </summary> internal class View { private string viewName; private string viewCaption; private string printView; private string fileName; /// <summary> /// Initializes a new instance of the <see cref="View"/> class. /// </summary> /// <param name="viewName">Name of the view.</param> /// <param name="viewCaption">The view caption.</param> /// <param name="fileName">Name of the file.</param> internal View(string viewName, string viewCaption, string fileName) : this(viewName, viewCaption, string.Empty, fileName) { } /// <summary> /// Initializes a new instance of the <see cref="View"/> class. /// </summary> /// <param name="viewName">Name of the view.</param> /// <param name="viewCaption">The view caption.</param> /// <param name="printViewname">The print viewname.</param> /// <param name="fileName">Name of the file.</param> internal View(string viewName, string viewCaption, string printViewname, string fileName) { this.ViewName = viewName; this.ViewCaption = viewCaption; this.PrintViewName = printViewname; this.FileName = fileName; } /// <summary> /// Gets or sets the name of the view. /// </summary> /// <value>The name of the view.</value> internal string ViewName { get { return this.viewName; } private set { this.viewName = value; } } /// <summary> /// Gets or sets the view caption. /// </summary> /// <value>The view caption.</value> internal string ViewCaption { get { return this.viewCaption; } private set { this.viewCaption = value; } } /// <summary> /// Gets or sets the name of the print view. /// </summary> /// <value>The name of the print view.</value> internal string PrintViewName { get { return this.printView; } private set { this.printView = value; } } /// <summary> /// Gets or sets the name of the file. /// </summary> /// <value>The name of the file.</value> internal string FileName { get { return this.fileName; } private set { this.fileName = value; } } /// <summary> /// Gibt einen <see cref="T:System.String"></see> zurück, der den aktuellen <see cref="T:System.Object"></see> darstellt. /// </summary> /// <returns> /// Ein <see cref="T:System.String"></see>, der den aktuellen <see cref="T:System.Object"></see> darstellt. /// </returns> public override string ToString() { return "Name: " + this.ViewName + ", Caption: " + this.ViewCaption; } } }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code