本文整理汇总了C#中Epi.Page类的典型用法代码示例。如果您正苦于以下问题:C# Page类的具体用法?C# Page怎么用?C# Page使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Page类属于Epi命名空间,在下文中一共展示了Page类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: MultilineTextField
/// <summary>
/// Constructor
/// </summary>
/// <param name="page">The page this field belongs to</param>
/// <param name="viewElement">Xml view element</param>
public MultilineTextField(Page page, XmlElement viewElement)
: base(page)
{
this.viewElement = viewElement;
this.Page = page;
Construct();
}
示例2: CheckBoxField
/// <summary>
/// Constructor
/// </summary>
/// <param name="page">The page the field belongs to</param>
/// <param name="viewElement"></param>
public CheckBoxField(Page page, XmlElement viewElement)
: base(page)
{
this.viewElement = viewElement;
this.Page = page;
Construct();
}
示例3: CommandButtonFieldDefinition
/// <summary>
/// Constructor for the class
/// </summary>
/// <param name="frm">The parent form</param>
/// <param name="page">The current page</param>
public CommandButtonFieldDefinition(MainForm frm, Page page)
: base(frm)
{
InitializeComponent();
this.mode = FormMode.Create;
this.page = page;
}
示例4: DateTimeField
/// <summary>
/// Constructor
/// </summary>
/// <param name="page">Page</param>
/// <param name="viewElement">Xml view element</param>
public DateTimeField(Page page, XmlElement viewElement)
: base(page)
{
construct();
this.viewElement = viewElement;
this.Page = page;
}
示例5: UpperCaseTextFieldDefinition
/// <summary>
/// Constructor for the class
/// </summary>
/// <param name="frm">The parent form</param>
/// <param name="page">Page the field will belong to</param>
public UpperCaseTextFieldDefinition(MainForm frm, Page page)
: base(frm)
{
InitializeComponent();
this.mode = FormMode.Create;
this.page = page;
}
示例6: CommentLegalDialog
/// <summary>
/// Constructor for the Comment Legal dialog
/// </summary>
/// <param name="column">The column associated with this comment legal grid column</param>
/// <param name="frm">The main form</param>
/// <param name="name">The name of the column</param>
/// <param name="currentPage">The current page</param>
public CommentLegalDialog(TableBasedDropDownColumn column, MainForm frm, string name, Page currentPage)
: base(column, frm, name, currentPage)
{
InitializeComponent();
fieldName = name;
page = currentPage;
//dgCodes.CaptionText = "Comment Legal values for: " + name;
}
示例7: RelateFieldDefinition
/// <summary>
/// Constructor for the Relate Field Definition
/// </summary>
/// <param name="frm">The main form</param>
/// <param name="page">The page</param>
public RelateFieldDefinition(Epi.Windows.MakeView.Forms.MakeViewMainForm frm, Page page)
: base(frm)
{
InitializeComponent();
this.memoryRegion = frm.EpiInterpreter;
this.mode = FormMode.Create;
this.page = page;
}
示例8: DateTimeFieldDefinition
/// <summary>
/// Constructor for the class
/// </summary>
/// <param name="frm">The parent form</param>
/// <param name="page">The current page</param>
public DateTimeFieldDefinition(MainForm frm, Page page)
: base(frm)
{
InitializeComponent();
this.mode = FormMode.Create;
this.page = page;
PopulatePatterns();
cbxPattern.SelectedIndex = -1;
}
示例9: GridColumnsDialog
/// <summary>
/// Constructor for Grid Columns Dialog
/// </summary>
/// <param name="frm">The main form</param>
/// <param name="fieldPage">The page containing the field</param>
/// <param name="gridField">The grid's field</param>
/// <param name="patternsDataView">The data view</param>
/// <param name="formMode">The form mode</param>
/// <param name="tempColumns">Temporary Columns</param>
public GridColumnsDialog(MainForm frm, Page fieldPage, Epi.Fields.GridField gridField, DataView patternsDataView, FormMode formMode, List<GridColumnBase> tempColumns)
: base(frm)
{
InitializeComponent();
page = fieldPage;
grid = gridField;
patterns = patternsDataView;
mode = formMode;
form = frm;
gridColumns = tempColumns;
}
示例10: ListDialog
/// <summary>
/// Constructor of the Codes dialog
/// </summary>
/// <param name="frm">The main form</param>
/// <param name="name">The field's name</param>
/// <param name="currentPage">The current page</param>
public ListDialog(MainForm frm, string name, Page currentPage)
: base(frm, name, currentPage)
{
InitializeComponent();
fieldName = name;
page = currentPage;
ddlField = new DDListField(page);
ddlField.Name = fieldName;
selectedFields = new NamedObjectCollection<Field>();
SetDataSource(ddlField);
SetDgCodes(dgCodes, fieldName);
}
示例11: CodesDialog
/// <summary>
/// Contructor of the CodesDialog
/// </summary>
/// <param name="field">The field</param>
/// <param name="frm">The main form</param>
/// <param name="name">The field name</param>
/// <param name="currentPage">The current page</param>
/// <param name="selectedItems">The names of the fields from the Code Field Definition dialog</param>
public CodesDialog(TableBasedDropDownField field, MainForm frm, string name, Page currentPage, NamedObjectCollection<Field> selectedItems)
: base(field, frm, name, currentPage)
{
InitializeComponent();
fieldName = name;
page = currentPage;
ddlField = (DDLFieldOfCodes)field;
selectedFields = selectedItems;
SetDataSource(ddlField);
SetDgCodes(dgCodes, fieldName);
dgCodes.Visible = true;
relateCondition = ddlField.RelateConditionString;
}
示例12: LegalValuesDialog
public LegalValuesDialog(MainForm frm, string name, Page currentPage)
: base(frm)
{
InitializeComponent();
InitContextMenu();
fieldName = name;
page = currentPage;
ddlField = new DDLFieldOfLegalValues(page);
ddlField.Name = name;
//dgCodes.CaptionText += " " + name;
//dgCodes.PreferredColumnWidth = Convert.ToInt32(dgCodes.Width * COLUMN_WIDTH_MULTIPLE);
if (!string.IsNullOrEmpty(ddlField.SourceTableName))
{
codeTable = ddlField.GetSourceData();
sourceTableName = ddlField.SourceTableName;
textColumnName = ddlField.TextColumnName;
}
}
示例13: InsertPageNode
/// <summary>
/// Inserts a page node for a given page
/// </summary>
/// <param name="page">Page in which node is to be inserted</param>
/// <param name="index">Index of insertion</param>
/// <returns></returns>
public PageNode InsertPageNode(Page page, int index)
{
PageNode node = new PageNode(page);
if (View.Pages.Count == 0)
{
Nodes.Add(node);
}
else
{
if (index == View.Pages.Count)
{
Nodes.Add(node);
}
else
{
Nodes.Insert(index, node);
}
}
return node;
}
示例14: DDLFieldOfLegalValues
/// <summary>
/// Constructor
/// </summary>
/// <param name="page">The page</param>
public DDLFieldOfLegalValues(Page page)
: base(page)
{
}
示例15: GridField
/// <summary>
/// Constructor
/// </summary>
/// <param name="page">The page this field belongs to.</param>
/// <param name="viewElement">The Xml view element of the GridField.</param>
public GridField(Page page, XmlElement viewElement)
: base(page)
{
this.viewElement = viewElement;
this.Page = page;
}