private void button4_Click(object sender, EventArgs e)
        {
            Concert tempConcert = findConcertByName((string)concertBox1.SelectedItem);

            if (textBox3.Text != "")
            {
                tempConcert.consertName = textBox3.Text;
            }
            if (textBox4.Text != "")
            {
                tempConcert.companyName = textBox4.Text;
            }
            if (textBox4.Text != "" && textBox3.Text != "")
            {
                MessageBox.Show("Пустые поля!");
            }


            tempConcert.dataTime = dateTimePicker2.Value;
        }
예제 #2
0
        public object Clone()
        {
            Concert tempConcert = new Concert(this.companyName, this.consertName + " - copy", this.dataTime);

            return(tempConcert);
        }
 public void addConsert(Concert concert)
 {
     consertList.Add(concert);
 }