예제 #1
0
파일: Form1.cs 프로젝트: shubidu/csharp
 private void btnCreateConference_Click(object sender, EventArgs e)
 {
     if (index < rooms.Length)
     {
         rooms[index++] = new ConferenceRoom(rnd.Next(1, 101), rnd.Next(1, 11), rnd.Next(50, 101));
     }
 }
예제 #2
0
 //copy constructor
 public ConferenceRoom(ConferenceRoom c)
     : this(c.RoomNumber, c.DaysOccupied, c.Area)
 { }