コード例 #1
0
        private void storageBtn_Click(object sender, RoutedEventArgs e)
        {
            ComboBoxItem typeItem    = type.SelectedItem as ComboBoxItem;
            string       typeContent = typeItem.Content.ToString();


            //ComboBoxItem changeItem = changeGame.SelectedItem as ComboBoxItem;
            //string changeContent = changeItem.Content.ToString();
            //Console.WriteLine(changeContent);
            AccessHelper.AddGameStorage(typeContent, gameID, userID, price.Text, changeGame.SelectedItem.ToString(), message.Text);
            MessageBox.Show("发布成功!", "message", MessageBoxButton.OK);
            this.Close();
            EventCenter.Broadcast <string>(EventType.UpdateGameList, gameID);
        }