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


C# Epi.View类代码示例

本文整理汇总了C#中Epi.View的典型用法代码示例。如果您正苦于以下问题:C# View类的具体用法?C# View怎么用?C# View使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


View类属于Epi命名空间,在下文中一共展示了View类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ImportEncryptedDataPackageDialog

 /// <summary>
 /// Constructor
 /// </summary>        
 /// <param name="destinationView">The form within the project that will accept the packaged data</param>
 /// <param name="mergeType">Determines how to handle data merging during the import.</param>
 public ImportEncryptedDataPackageDialog(View destinationView, DataMergeType mergeType = DataMergeType.UpdateAndAppend)
 {
     InitializeComponent();
     this.destinationView = destinationView;
     destinationProject = this.destinationView.Project;
     Construct(mergeType);
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:ImportEncryptedDataPackageDialog.cs

示例2: MultilineTextField

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="view">View</param>
 /// <param name="fieldNode">Xml field node</param>
 public MultilineTextField(View view, XmlNode fieldNode)
     : base(view)
 {
     this.fieldNode = fieldNode;
     this.view.Project.Metadata.GetFieldData(this, this.fieldNode);
     Construct();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:MultilineTextField.cs

示例3: DataDictionary

 /// <summary>
 /// Constructor for the class
 /// </summary>
 /// <param name="givenView">The View to load check code for</param>
 /// <param name="givenMainForm">The main form</param>
 public DataDictionary(View givenView, MainForm givenMainForm)
 {
     view = givenView;
     project = view.Project;
     mainForm = givenMainForm;
     Construct();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:DataDictionary.cs

示例4: DateTimeField

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="view">View</param>
 /// <param name="fieldNode">Xml field node</param>
 public DateTimeField(View view, XmlNode fieldNode)
     : base(view)
 {
     construct();
     this.fieldNode = fieldNode;
     this.view.Project.Metadata.GetFieldData(this, this.fieldNode);
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:DateTimeField.cs

示例5: ProjectUnpackager

 /// <summary>
 /// The constructor
 /// </summary>
 /// <param name="destinationView">The destination form.</param>
 /// <param name="packagePaths">The file paths for the packages to be imported.</param>
 /// <param name="password">The password for the encryption.</param>
 public ProjectUnpackager(View destinationView, List<string> packagePaths, string password)
 {
     this.destinationView = destinationView;
     this.destinationProject = destinationView.Project;
     this.packagePaths = packagePaths;
     this.password = password;
     gch = GCHandle.Alloc(password, GCHandleType.Pinned);
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:14,代码来源:ProjectUnpackager.cs

示例6: RenamePageDialog

 /// <summary>
 /// Constructor for the class
 /// </summary>
 /// <param name="frm">The calling form</param>
 /// <param name="node">The original page node</param>        
 public RenamePageDialog(MainForm frm, PageNode node)
     : base(frm)
 {
     // This call is required by the Windows Form Designer.
     InitializeComponent();
     this.PageNode = node;
     this.parentView = node.Page.view;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:13,代码来源:RenamePageDialog.cs

示例7: XmlMultiKeyDataUnpackager

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="destinationForm">The form that will receive the incoming data</param>
 /// <param name="xmlDataPackage">The data package in Xml format</param>
 public XmlMultiKeyDataUnpackager(View destinationForm, XmlDocument xmlDataPackage)
     : base(destinationForm, xmlDataPackage)
 {
     #region Input Validation
     if (destinationForm == null) { throw new ArgumentNullException("sourceForm"); }
     if (xmlDataPackage == null) { throw new ArgumentNullException("xmlDataPackage"); }
     #endregion // Input Validation
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:13,代码来源:XmlMultiKeyDataUnpackager.cs

示例8: XmlSqlDataPackager

 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="sourceForm">The form within the project whose data will be packaged.</param>
 /// <param name="packageName">The name of the data package.</param>
 public XmlSqlDataPackager(View sourceForm, string packageName)
     : base(sourceForm, packageName)
 {
     #region Input Validation
     if (sourceForm == null) { throw new ArgumentNullException("sourceForm"); }
     if (String.IsNullOrEmpty(packageName)) { throw new ArgumentNullException("packageName"); }
     #endregion // Input Validation
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:13,代码来源:XmlSqlDataPackager.cs

示例9: FormDataImporter

 /// <summary>
 /// Constructor
 /// </summary>
 public FormDataImporter(Project sourceProject, Project destinationProject, View destinationView, List<View> viewsToProcess)
 {
     this.formsToProcess = viewsToProcess;
     this.sourceProject = sourceProject;
     this.destinationProject = destinationProject;
     this.sourceView = sourceProject.Views[destinationView.Name];
     this.destinationView = destinationView;
     Construct();
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:12,代码来源:FormDataImporter.cs

示例10: ImportWebDataForm

        /// <summary>
        /// Constructor
        /// </summary>        
        /// <param name="destinationView">The destination form; should be the currently-open view</param>
        public ImportWebDataForm(View destinationView)
        {
            InitializeComponent();

            this.destinationProject = destinationView.Project;
            this.destinationView = destinationView;

            Construct();
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:13,代码来源:ImportWebData.cs

示例11: ViewNode

 /// <summary>
 /// Constructor for ViewNode
 /// </summary>
 /// <param name="view">The current view</param>
 public ViewNode(View view)
 {
     Initialize();
     this.View = view;
     this.Text = view.Name;
     foreach (Page page in view.Pages)
     {
         this.Nodes.Add(new PageNode(page));
     }
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:14,代码来源:ViewNode.cs

示例12: UnSubscribe

 public void UnSubscribe()
 {
     this.Controls.Clear();
     this.host = null;            
     this.dashboard = null;
     this.host = null;
     this.enterMainForm = null;
     this.currentView = null;
     this.db = null;
     this.loadedRuntimeView = null;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:AnalyticsViewer.cs

示例13: RelatedConnection

 public RelatedConnection(View view, IDbDriver db, string parentKey, string childKey, bool useUnmatched, bool sameDataSource)
 {
     this.view = view;
     this.db = db;
     this.TableName = "";
     this.ConnectionName = "";
     this.ChildKeyField = childKey;
     this.ParentKeyField = parentKey;
     this.UseUnmatched = useUnmatched;
     this.SameDataSource = sameDataSource;
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:11,代码来源:RelatedConnection.cs

示例14: Render

 public void Render(Epi.View view)
 {
     try
     {
         if (!view.IsRelatedView)
         {
             this.currentView = view;
         }
     }
     catch (Exception ex)
     {
         //temporarily catch all
     }
 }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:14,代码来源:MapViewer.cs

示例15: CheckCode

        /// <summary>
        /// Constructor for the class
        /// </summary>
        /// <param name="view">The View to load check code for</param>
        /// <param name="frm">The main form</param>
        public CheckCode(View currentview, MakeViewMainForm frm)
        {
            mainForm = frm;
            if(currentview!=null)
            currentview.MustRefreshFieldCollection = true;
            view = currentview;
            Construct();
            EpiInfo.Plugin.IEnterInterpreter MR = mainForm.EpiInterpreter;
            MR.Context.RemoveVariablesInScope(VariableScope.Standard);

            if (!string.IsNullOrEmpty(view.CheckCode))
            {
                try
                {
                    mainForm.EpiInterpreter.Execute(view.CheckCode);
                }
                catch
                {

                }
            }

            foreach (Field field in view.Fields)
            {
                if (field is IDataField)
                {
                    EpiInfo.Plugin.IVariable definedVar = (EpiInfo.Plugin.IVariable)field;
                    MR.Context.DefineVariable(definedVar);
                }
                else if (field is Epi.Fields.LabelField)
                {
                    PluginVariable p = new PluginVariable();
                    p.Name = field.Name;
                    p.Prompt = ((Epi.Fields.LabelField)field).PromptText;
                    p.VariableScope = EpiInfo.Plugin.VariableScope.DataSource;
                    p.DataType = EpiInfo.Plugin.DataType.Text;
                    MR.Context.DefineVariable(p);
                }
                else
                {
                }
            }

            BuildComboBox();

            this.codeText.SelectionStart = 0;
            this.codeText.SelectionLength = 0;
        }
开发者ID:NALSS,项目名称:epiinfo-82474,代码行数:53,代码来源:CheckCode.cs


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