Esempio n. 1
0
        /// <summary>
        /// 初始化填充路径下拉列表 narky 20100622
        /// </summary>
        private void Init_PathField()
        {
            try
            {
                pathDB = new DataClass(configDB);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "严重错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Environment.Exit(Environment.ExitCode);
            }
            DataTable dt = new DataTable();

            //来源地址
            dt = pathDB.PathData();
            this.cbbox_Source.DataSource    = dt;
            this.cbbox_Source.DisplayMember = "pathString";

            //目标地址
            dt = pathDB.PathData(2);
            this.cbbox_Dest.DataSource    = dt;
            this.cbbox_Dest.DisplayMember = "pathString";

            //文件名过滤器
            dt = pathDB.FilterList();
            this.cbbox_FilterFiles.DataSource    = dt;
            this.cbbox_FilterFiles.DisplayMember = "filter";

            pathDB.Close();
        }
Esempio n. 2
0
        private void SettingsForm_Load(object sender, EventArgs e)
        {
            this.MaximumSize = this.Size;
            this.MinimumSize = this.Size;

            DataClass dataclass = new DataClass(configDB);
            Dictionary <string, string> myDic = dataclass.SettingsDict();

            this.tb_pathnum.Text = myDic["path_list_num"];

            DataTable dt = dataclass.FilterList(0);

            foreach (DataRow dr in dt.Rows)
            {
                this.list_Filter.Items.Add(dr["filter"].ToString());
            }

            dataclass.Close();
        }
Esempio n. 3
0
        /// <summary>
        /// 初始化填充路径下拉列表 narky 20100622
        /// </summary>
        private void Init_PathField()
        {
            try
            {
                pathDB = new DataClass(configDB);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "严重错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Environment.Exit(Environment.ExitCode);
            }
            DataTable dt = new DataTable();
            //来源地址
            dt = pathDB.PathData();
            this.cbbox_Source.DataSource = dt;
            this.cbbox_Source.DisplayMember = "pathString";

            //目标地址
            dt = pathDB.PathData(2);
            this.cbbox_Dest.DataSource = dt;
            this.cbbox_Dest.DisplayMember = "pathString";

            //文件名过滤器
            dt = pathDB.FilterList();
            this.cbbox_FilterFiles.DataSource = dt;
            this.cbbox_FilterFiles.DisplayMember = "filter";

            pathDB.Close();
        }
Esempio n. 4
0
        private void SettingsForm_Load(object sender, EventArgs e)
        {
            this.MaximumSize = this.Size;
            this.MinimumSize = this.Size;

            DataClass dataclass=new DataClass(configDB);
            Dictionary<string, string> myDic = dataclass.SettingsDict();
            this.tb_pathnum.Text = myDic["path_list_num"];

            DataTable dt = dataclass.FilterList(0);
            foreach (DataRow dr in dt.Rows)
            {
                this.list_Filter.Items.Add(dr["filter"].ToString());
            }

            dataclass.Close();
        }