private void refresh()
        {
            var list = new Common.Config_Directory().GetAll();

            this.listView1.Items.Clear();
            foreach (var li in list)
            {
                this.listView1.Items.Add(new ListViewItem(new string[] {
                    li.Name
                }));
            }
        }
Exemplo n.º 2
0
        private void Form_Code_SetDir_Load(object sender, EventArgs e)
        {
            Form.CheckForIllegalCrossThreadCalls = false;
            this.label8.Text = "";

            //加载默认命名空间
            Model.ConfigNameSpace cnsDefault = new Common.Config_NameSpace().GetDefault();
            if (cnsDefault != null)
            {
            }

            //加载目录
            var dirDefault = new Common.Config_Directory().GetDefault();

            if (dirDefault != null)
            {
                this.textBox_dir.Text = dirDefault.Name;
            }
        }
Exemplo n.º 3
0
        private void Form_Code_SetDir_Load(object sender, EventArgs e)
        {
            Form.CheckForIllegalCrossThreadCalls = false;
            this.label8.Text = "";

            //加载默认命名空间
            Model.ConfigNameSpace cnsDefault = new Common.Config_NameSpace().GetDefault();
            if (cnsDefault != null)
            {

            }

            //加载目录
            var dirDefault = new Common.Config_Directory().GetDefault();
            if (dirDefault != null)
            {
                this.textBox_dir.Text = dirDefault.Name;
            }
        }