本文整理汇总了C#中Epi.Page类的典型用法代码示例。如果您正苦于以下问题:C# Page类的具体用法?C# Page怎么用?C# Page使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Page类属于Epi命名空间,在下文中一共展示了Page类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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();
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:MultilineTextField.cs
示例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();
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:CheckBoxField.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:CommandButtonFieldDefinition.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:DateTimeField.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:UpperCaseTextFieldDefinition.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:15,代码来源:CommentLegalDialog.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:13,代码来源:RelateFieldDefinition.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:14,代码来源:DateTimeFieldDefinition.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:20,代码来源:GridColumnsDialog.cs
示例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);
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:18,代码来源:ListDialog.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:21,代码来源:CodesDialog.cs
示例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;
}
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:19,代码来源:LegalValuesDialog.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:26,代码来源:ViewNode.cs
示例14: DDLFieldOfLegalValues
/// <summary>
/// Constructor
/// </summary>
/// <param name="page">The page</param>
public DDLFieldOfLegalValues(Page page)
: base(page)
{
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:8,代码来源:DDLFieldOfLegalValues.cs
示例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;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:GridField.cs
示例16: CheckCode
/// <summary>
/// Constructor for the class
/// </summary>
/// <param name="page">The Page to load check code for</param>
/// <param name="frm">The main form</param>
public CheckCode(Page page, MakeViewMainForm frm,View currentview)
{
mainForm = frm;
if (currentview != null)
currentview.MustRefreshFieldCollection = true;
view = currentview;
Construct();
BuildComboBox();
string Identifier;
if (page.Name.Trim().IndexOf(' ') > -1)
{
Identifier = "[" + page.Name + "]";
}
else
{
Identifier = page.Name;
}
this.GotoLine("page", "", Identifier);
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:24,代码来源:CheckCode.cs
示例17: InputFieldWithSeparatePrompt
/// <summary>
/// Constructor.
/// </summary>
/// <param name="page"><see cref="Epi.Page"/></param>
public InputFieldWithSeparatePrompt(Page page)
: base(page)
{
Construct();
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:9,代码来源:InputFieldWithSeparatePrompt.cs
示例18: DDListField
/// <summary>
/// Constructor
/// </summary>
/// <param name="page">The page</param>
/// <param name="viewElement">XML View element</param>
public DDListField(Page page, XmlElement viewElement)
: base(page)
{
this.viewElement = viewElement;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:10,代码来源:DDListField.cs
示例19: AssignTabIndex
/// <summary>
/// Assign Tab Index of the field
/// </summary>
/// <param name="field">The field whose tab index is to be assigned</param>
/// <param name="page">The page the field belongs to</param>
private void AssignTabIndex(Field field, Page page)
{
((RenderableField)field).TabIndex = field.GetMetadata().GetFieldTabIndex(field.Id, field.GetView().Id, page.Id);
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:9,代码来源:ControlFactory.cs
示例20: CreatePage
/// <summary>
/// Creates a new page and adds it to the page collection
/// </summary>
/// <param name="name">Name of the page</param>
/// <param name="position">Position of the page</param>
/// <returns>The new page object</returns>
public Page CreatePage(string name, int position)
{
#region Input Validation
if (name == null)
{
throw new ArgumentNullException("name");
}
if (position < 0)
{
throw new ArgumentOutOfRangeException("Position");
}
#endregion Input Validation
Page page = null;
this.pages = null;
this.project.Save();
page = new Page(this, 0);
page.Name = name;
page.Position = position;
page.Id = 0;
page.SaveToDb();
return page;
}
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:31,代码来源:View.cs
注:本文中的Epi.Page类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论