示例#1
0
文件: StoreAdd.cs 项目: wynet321/aimu
        private void buttonOK_Click(object sender, EventArgs e)
        {
            Store store = new Store();

            store.name   = textBoxStoreName.Text.Trim();
            store.cityId = cityId;
            if (store.name.Length > 0)
            {
                ShardDb.insertStore(store);
                this.Close();
            }
            else
            {
                MessageBox.Show("请输入店铺名称");
                textBoxStoreName.Focus();
            }
        }