void btnEditorOK_Click(object sender, SdlDotNet.Widgets.MouseButtonEventArgs e) { Shops.Shop shopToSend = new Shops.Shop(); shopToSend.Name = txtName.Text; shopToSend.JoinSay = txtJoinSay.Text; shopToSend.LeaveSay = txtLeaveSay.Text; for (int j = 0; j < MaxInfo.MAX_TRADES; j++) { shopToSend.Items[j].GiveItem = shopItemList[j].GiveItem; shopToSend.Items[j].GiveValue = shopItemList[j].GiveValue; shopToSend.Items[j].GetItem = shopItemList[j].GetItem; } Messenger.SendSaveShop(shopNum, shopToSend); pnlShopEditor.Visible = false; pnlShopList.Visible = true; this.Size = new System.Drawing.Size(pnlShopList.Width, pnlShopList.Height); }