当前位置: 首页>>代码示例>>C#>>正文


C# Epi类代码示例

本文整理汇总了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();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:UpgradeProblemDisplayDialog.cs

示例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;
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:28,代码来源:RunTimeView.cs

示例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);
                        }
                    }

                }
            }
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:63,代码来源:ReadDialog.cs

示例4: DefineUserCommandDialog

 /// <summary>
 /// Constructor for dialog
 /// </summary>
 /// <param name="frm"></param>
 public DefineUserCommandDialog(Epi.Windows.Analysis.Forms.AnalysisMainForm frm)
     : base(frm)
 {
     InitializeComponent();
     construct();
     CheckForInputSufficiency();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:DefineUserCommandDialog.cs

示例5: ReadDataSourceDialog

 /// <summary>
 /// Constructor for Read dialog
 /// </summary>
 public ReadDataSourceDialog(Epi.Windows.Analysis.Forms.AnalysisMainForm frm)
     : base(frm)
 {
     InitializeComponent();
     Construct();
     this.EpiInterpreter = frm.EpiInterpreter;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:10,代码来源:ReadDataSourceDialog.cs

示例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();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:DialogDialog.cs

示例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();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:DialogDialog.cs

示例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;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:IfDialog.cs

示例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;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:7,代码来源:UpgradeProblemDisplayDialog.cs

示例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);
                        }
                    }

                }
            }
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:38,代码来源:ReadDialog.cs

示例11: RepublishSurveyFields

        public RepublishSurveyFields(string pOrganizationKey, Epi.View pView, string pTemplate)
        {
            InitializeComponent();

            this.OrganizationKey = pOrganizationKey;
            this.view = pView;
            this.template = pTemplate;
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:8,代码来源:RepublishSurveyFields.cs

示例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;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:8,代码来源:LayerList.xaml.cs

示例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();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:RunSavedPGMDialog.cs

示例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;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:13,代码来源:RelateFieldDefinition.cs

示例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;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:EditorToolWindow.cs


注:本文中的Epi类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。