Пример #1
0
        public Form1()
        {
            InitializeComponent();
            size = pbSimulation.Size;
            sim  = new Simulation();
            Data = new DataFileHelper("Simulation report.txt", sim);

            categoryComboBox.Items.Add("Random");
            categoryComboBox.Items.Add(Category.A);
            categoryComboBox.Items.Add(Category.B);
            categoryComboBox.Items.Add(Category.C);
            categoryComboBox.Items.Add(Category.D);
            categoryComboBox.SelectedIndex = 0;

            tbRoomA.Text = "4";
            tbRoomB.Text = "4";
            tbRoomC.Text = "5";
            tbRoomD.Text = "11";
            tbBedA.Text  = "2";
            tbBedB.Text  = "3";
            tbBedC.Text  = "1";
            tbBedD.Text  = "1";
        }