コード例 #1
0
ファイル: AddNewItemForm.cs プロジェクト: Lbniese/PawsPremium
        private void myBagsButton_Click(object sender, EventArgs e)
        {
            var newForm = new AddItemMyBagsForm();

            if (newForm.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            var selectedItem = newForm.carriedItemsComboBox.SelectedItem as ItemSelectionEntry;

            if (selectedItem == null)
            {
                return;
            }
            itemEntryTextBox.Text = selectedItem.Entry.ToString();
            itemNameTextBox.Text  = selectedItem.Name;
        }
コード例 #2
0
ファイル: AddNewItemForm.cs プロジェクト: Lbniese/PawsPremium
        private void myBagsButton_Click(object sender, EventArgs e)
        {
            var newForm = new AddItemMyBagsForm();

            if (newForm.ShowDialog() != DialogResult.OK) return;
            var selectedItem = newForm.carriedItemsComboBox.SelectedItem as ItemSelectionEntry;

            if (selectedItem == null) return;
            itemEntryTextBox.Text = selectedItem.Entry.ToString();
            itemNameTextBox.Text = selectedItem.Name;
        }