Esempio n. 1
0
        private bool DLAddMain()
        {
            this.AccountData.AppName = this.AccountData.ID;
            string pResponseText = SQLData.AddDLUserRow(this.AccountData, AppInfo.Account);

            if (CommFunc.CheckResponseText(pResponseText))
            {
                CommFunc.PublicMessageAll("添加代理成功!", true, MessageBoxIcon.Asterisk, "");
                return(true);
            }
            string str2 = "请联系客服人员!";

            if (pResponseText.Contains("插入重复键"))
            {
                str2 = "该代理已经存在!";
                this.Tbl_DLID.ValueFocus();
            }
            CommFunc.PublicMessageAll($"添加代理失败,{str2}", true, MessageBoxIcon.Asterisk, "");
            return(false);
        }