本文整理汇总了C#中Epi类的典型用法代码示例。如果您正苦于以下问题:C# Epi类的具体用法?C# Epi怎么用?C# Epi使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Epi类属于命名空间,在下文中一共展示了Epi类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UpgradeProblemDisplayDialog
/// <summary>
/// Constructor
/// </summary>
/// <param name="pSourceProject">The Epi Info 2000 project to check</param>
public UpgradeProblemDisplayDialog(Epi.Epi2000.Project pSourceProject)
{
InitializeComponent();
lvProblems.Items.Clear();
sourceProject = pSourceProject;
this.errorList = new ImportExportErrorList();
}
示例2: RunTimeView
public RunTimeView(IEnterInterpreterHost pEnterClientInterface, Epi.View pView, int pParentRecordId, string pParentGlobalRecordId, IScope pScope = null)
{
// to do set the enter interpreter
// application domain.
Assembly a = Assembly.Load(pView.Project.EnterMakeviewIntepreter);
// Get the type to use.
Type myType = a.GetType(pView.Project.EnterMakeviewIntepreter + ".EpiInterpreterParser");
// Create an instance.
if (pScope == null)
{
this.mEpiInterpreter = (IEnterInterpreter)Activator.CreateInstance(myType, new object[] { pEnterClientInterface });
}
else
{
this.mEpiInterpreter = (IEnterInterpreter)Activator.CreateInstance(myType, new object[] { pEnterClientInterface, pScope });
}
this.mEpiInterpreter.Context.Scope.Name = pView.Name;
this.mEpiInterpreter.Host = pEnterClientInterface;
this.EnterClientInterface = pEnterClientInterface;
this.AfterStack = new Stack<KeyValuePair<EventActionEnum, StackCommand>>();
this.parentViewRecordId = pParentRecordId;
this.parentViewGlobalRecordId = pParentGlobalRecordId;
this.RecordNumberMap = new Dictionary<int, int>();
this.mView = pView;
this.mView.ForeignKeyField.CurrentRecordValueString = this.ParentGlobalRecordId;
}
示例3: ReadDialog
/// <summary>
/// Constructor for Read dialog
/// </summary>
public ReadDialog(Epi.Windows.MakeView.Forms.MakeViewMainForm frm)
: base(frm)
{
InitializeComponent();
Construct();
SourceProjectNames = new Hashtable();
if (frm.projectExplorer != null)
{
if (frm.projectExplorer.currentPage != null)
{
this.sourceProject = frm.projectExplorer.currentPage.view.Project;
this.selectedProject = this.sourceProject;
this.selectedDataSource = this.selectedProject;
//--EI-48
//Adds datatable names to viewlist to enable other tables in project
List<string> SourceViewnames = this.sourceProject.GetViewNames();
SourceNonViewnames = this.sourceProject.GetNonViewTableNames();
foreach(string str in SourceViewnames)
{
View MView = this.sourceProject.GetViewByName(str);
DataTable ViewPages = MView.GetMetadata().GetPagesForView(MView.Id);
foreach(DataRow dt in ViewPages.Rows)
{
string ViewdataTable = MView.TableName + dt[ColumnNames.PAGE_ID];
Sourcedatatables.Add(ViewdataTable);
}
if (SourceNonViewnames.Contains(str)) { SourceNonViewnames.Remove(str); }
}
foreach(string str in Sourcedatatables)
{
SourceViewnames.Add(str);
if (SourceNonViewnames.Contains(str)) { SourceNonViewnames.Remove(str);}
}
//--
foreach (string s in this.sourceProject.GetNonViewTableNames())
{
string key = s.ToUpper().Trim();
if (!SourceProjectNames.Contains(key))
{
if (SourceViewnames.Contains(s))
{
SourceProjectNames.Add(key, true);
}
}
}
foreach (string s in this.sourceProject.GetViewNames())
{
string key = s.ToUpper().Trim();
if (!SourceProjectNames.Contains(key))
{
SourceProjectNames.Add(key, true);
}
}
}
}
}
示例4: DefineUserCommandDialog
/// <summary>
/// Constructor for dialog
/// </summary>
/// <param name="frm"></param>
public DefineUserCommandDialog(Epi.Windows.Analysis.Forms.AnalysisMainForm frm)
: base(frm)
{
InitializeComponent();
construct();
CheckForInputSufficiency();
}
示例5: ReadDataSourceDialog
/// <summary>
/// Constructor for Read dialog
/// </summary>
public ReadDataSourceDialog(Epi.Windows.Analysis.Forms.AnalysisMainForm frm)
: base(frm)
{
InitializeComponent();
Construct();
this.EpiInterpreter = frm.EpiInterpreter;
}
示例6: DialogDialog
/// <summary>
/// Constructor for Dialog dialog
/// </summary>
/// <param name="frm">The main form</param>
public DialogDialog(Epi.Windows.Analysis.Forms.AnalysisMainForm frm)
: base(frm)
{
InitializeComponent();
mainForm = frm;
Construct();
}
示例7: DialogDialog
/// <summary>
/// Constructor for Dialog dialog
/// </summary>
/// <param name="frm">The main form</param>
public DialogDialog(Epi.Windows.MakeView.Forms.MakeViewMainForm frm)
: base(frm)
{
InitializeComponent();
mainForm = frm;
Construct();
}
示例8: IfDialog
/// <summary>
/// Constructor for If Dialog
/// </summary>
/// <param name="frm"></param>
public IfDialog(Epi.Windows.Analysis.Forms.AnalysisMainForm frm)
: base(frm)
{
InitializeComponent();
Construct();
amf = frm;
}
示例9: CheckSourceProjectForProblems
private void CheckSourceProjectForProblems(Epi.Epi2000.Project sourceProject)
{
Epi.ImportExport.Epi2000.ProjectAnalyzer projectAnalyzer = new Epi.ImportExport.Epi2000.ProjectAnalyzer(sourceProject);
projectAnalyzer.SetStatus += new UpdateStatusEventHandler(projectAnalyzer_SetStatus);
projectAnalyzer.Analyze();
this.errorList = projectAnalyzer.ErrorList;
}
示例10: ReadDialog
/// <summary>
/// Constructor for Read dialog
/// </summary>
public ReadDialog(Epi.Windows.MakeView.Forms.MakeViewMainForm frm)
: base(frm)
{
InitializeComponent();
Construct();
SourceProjectNames = new Hashtable();
if (frm.projectExplorer != null)
{
if (frm.projectExplorer.currentPage != null)
{
this.sourceProject = frm.projectExplorer.currentPage.view.Project;
this.selectedProject = this.sourceProject;
this.selectedDataSource = this.selectedProject;
foreach (string s in this.sourceProject.GetNonViewTableNames())
{
string key = s.ToUpper().Trim();
if (!SourceProjectNames.Contains(key))
{
SourceProjectNames.Add(key, true);
}
}
foreach (string s in this.sourceProject.GetViewNames())
{
string key = s.ToUpper().Trim();
if (!SourceProjectNames.Contains(key))
{
SourceProjectNames.Add(key, true);
}
}
}
}
}
示例11: RepublishSurveyFields
public RepublishSurveyFields(string pOrganizationKey, Epi.View pView, string pTemplate)
{
InitializeComponent();
this.OrganizationKey = pOrganizationKey;
this.view = pView;
this.template = pTemplate;
}
示例12: LayerList
public LayerList(ESRI.ArcGIS.Client.Map myMap, Epi.View view, Epi.Data.IDbDriver db, DashboardHelper dashboardHelper)
{
InitializeComponent();
this.myMap = myMap;
this.view = view;
this.db = db;
this.dashboardHelper = dashboardHelper;
}
示例13: RunSavedPGMDialog
/// <summary>
/// Constructor for dialog
/// </summary>
/// <param name="frm"></param>
public RunSavedPGMDialog(Epi.Windows.Analysis.Forms.AnalysisMainForm frm)
: base(frm)
{
InitializeComponent();
construct();
LoadPGMList();
CheckForInputSufficiency();
}
示例14: 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;
}
示例15: EditorToolWindow
/// <summary>
/// Constructor
/// </summary>
/// <param name="frm">The main form</param>
public EditorToolWindow(Epi.Windows.MakeView.Forms.MakeViewMainForm frm)
: base(frm)
{
InitializeComponent();
declaredVariables = new Collection<string>();
this.txtTextArea.AcceptsTab = true;
this.memoryRegion = frm.EpiInterpreter;
}