Exemplo n.º 1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     if (this.txtNameSpace.Text.Length == 0)
     {
         MessageBox.Show("请输命名空间!");
         return;
     }
     MyConfiguations.SaveNameSpace(this.txtNameSpace.Text, this.txtNameSpace.Text);
     ShowNameSpaceList();
 }
Exemplo n.º 2
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            if (this.lbNameSpace.SelectedIndex < 0)
            {
                MessageBox.Show("请选择要删除的命名空间!");
                return;
            }
            string tmpValue = this.lbNameSpace.SelectedItem.ToString();

            string[] items = tmpValue.Split(':');
            MyConfiguations.DeleteNameSpace(items[0]);
            this.lbNameSpace.Items.RemoveAt(this.lbNameSpace.SelectedIndex);
            ShowNameSpaceList();
        }