コード例 #1
0
        private void CheckAva(object sender, EventArgs e)
        {
            List <int> avv;
            DateTime   t1 = start.Value;
            DateTime   t2 = end.Value;

            avv = f.checkAv(t1, t2);
            if (avv.Count > 0)
            {
                MessageBox.Show("There is Exist Room");
                for (int i = 0; i < avv.Count; i++)
                {
                    ComobRooms.Items.Add(avv[i]);
                }
                start11.Value   = start.Value;
                end11.Value     = end11.Value;
                start11.Enabled = false;
                end11.Enabled   = false;
            }
            else
            {
                MessageBox.Show("Not Found Any Room");
            }
        }