Esempio n. 1
0
        private void btnConfrimToSend_Click(object sender, EventArgs e)
        {
            if (user_Items == null)
            {
                MessageBox.Show("请选择获赠人及其获赠物品");
                return;
            }

            SendReasion sendreasion = new SendReasion(about);

            sendreasion.ShowDialog();


            for (int i = 0; i < user_Items.GetLength(0); i++)
            {
                for (int j = 0; j < recvAccountList.GetLength(0); j++)
                {
                    if (recvAccountList[j, 0].oContent.ToString().Equals(user_Items[i, 0]))
                    {
                        strInfo += recvAccountList[j, 0].oContent.ToString() + "," + recvAccountList[j, 2].oContent.ToString().Replace(",", ",") + "," + user_Items[i, 1] + ";";
                    }
                }
            }

            SendEquipment();
        }
Esempio n. 2
0
        private void btnConfrimToSend_Click(object sender, EventArgs e)
        {
            if (user_Items == null || user_Items.GetLength(0) <= 0)
            {
                MessageBox.Show(config.ReadConfigValue("MAU", "ST_Code_msg4"));
                return;
            }

            SendReasion sendreasion = new SendReasion(about, m_ClientEvent);

            sendreasion.ShowDialog();

            if (!sendreasion.canceled)
            {
                for (int i = 0; i < user_Items.GetLength(0); i++)
                {
                    for (int j = 0; j < recvAccountList.GetLength(0); j++)
                    {
                        if (recvAccountList[j, 0].oContent.ToString().Equals(user_Items[i, 0]))
                        {
                            strInfo += recvAccountList[j, 0].oContent.ToString() + "," + recvAccountList[j, 2].oContent.ToString().Replace(",", ",") + "," + user_Items[i, 1] + ";";
                        }
                    }
                }

                btnConfrimToSend.Enabled = false;
                Cursor = Cursors.AppStarting;

                SendEquipment();
            }
        }