Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string newName = textBox1.Text.Trim();

            if (string.IsNullOrWhiteSpace(newName))
            {
                GlobalVariable.ShowError("新组名不能为空");
                return;
            }
            bool rs = GlobalVariable.EditTeamName(_teamGuid, newName);

            if (rs)
            {
                GlobalVariable.ShowSuccess("分组名修改成功");
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
        }