⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 autosearchdialog.cs

📁 EpiInfo 开源的导航系统远程序,不知道在哪里下的了,分享一下,有兴趣的
💻 CS
字号:
#region Namespaces

using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using Epi;
using Epi.Windows.Dialogs;

#endregion  //Namespaces

namespace Epi.Windows.MakeView.Dialogs.CheckCodeCommandDialogs
{
	/// <summary>
	/// ***** This is a wireframe and currently contains no functionality *****
	/// </summary>
    public partial class AutoSearchDialog : CheckCodeDesignDialog
	{
        #region Constructors

        /// <summary>
        /// Default constructor - Design mode only
        /// </summary>
        [Obsolete("Use of default constructor not allowed", true)]
        public AutoSearchDialog()
        {
            InitializeComponent();
        }

        /// <summary>
		/// Constructor for the class
		/// </summary>
        public AutoSearchDialog(MainForm frm) : base(frm)
		{
			InitializeComponent();
        }
        #endregion Constructors

        #region Private Event Handling

        /// <summary>
		/// Cancel button closes this dialog 
		/// </summary>
		/// <param name="sender">Object thate fired the event</param>
		/// <param name="e">.NET supplied event parameters</param>
		private void btnCancel_Click(object sender, System.EventArgs e)
		{
			this.Close();
        }

        private void btnOk_Click(object sender, System.EventArgs e)
        {
            Output = CommandNames.AUTOSEARCH + StringLiterals.SPACE;
            //            Output = "AUTOSEARCH ";

            for (int i = 0; i <= lbxFields.SelectedItems.Count - 1; i++)
            {
                Output += lbxFields.SelectedItems[i].ToString() + StringLiterals.SPACE;
            }

            Output = Output.Trim();
            this.DialogResult = DialogResult.OK;
            this.Hide();
        }

        private void lbxFields_SelectedIndexChanged(object sender, EventArgs e)
        {
            btnOk.Enabled = (lbxFields.SelectedItem != null);
        }

        #endregion  //Private Event Handling

        #region Public Properties
        /// <summary>
        /// Sets the View for the dialog
        /// </summary>
        public override View View
        {
            set
            {
                foreach (Fields.Field field in value.Fields)
                {
                    if (field is Fields.RenderableField && !(field is Fields.LabelField))
                    {
                        lbxFields.Items.Add(field.Name);
                    }
                }
            }
        }

        #endregion  //Public Properties

    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -