public WindowApplyRent(Person p, Classroom clsr, DateTime dt, int cc, WindowIndex f)
        {
            InitializeComponent();

            person = p;
            classroom = clsr;
            date = dt;
            classChosen = cc;
            father = f;

            if (father.WindowState == WindowState.Maximized)
            {
                Console.WriteLine("Max!");
                this.Width = 450;
                this.Height = 450;
                BorderBackground.Width = 450;
                BorderBackground.Height = 450;

                TBinfo.FontSize = 40;

                TBhost.FontSize =
                TBrentTime.FontSize =
                TBclassroom.FontSize =
                TBChoose.FontSize =
                TBexit.FontSize = 22;
            }
        }
        public WindowApplyRent(Person p, Classroom clsr, DateTime dt, int cc, WindowIndex f)
        {
            InitializeComponent();

            person = p;
            classroom = clsr;
            date = dt;
            classChosen = cc;
            father = f;
        }
        public WindowIndex(Person p)
        {
            InitializeComponent();
            person = p;

            EnsureSkins();
            ApplySkin(StarrySkin);

            if (person.pId == 0) SetStatus(status.Message);
            else SetStatus(status.Table);
        }
        public WindowApplyRent(Person p, Classroom clsr, DateTime dt, int cc, WindowIndex f,string str)
        {
            InitializeComponent();

            person = p;
            classroom = clsr;
            date = dt;
            classChosen = cc;
            father = f;
            if (str == "big")
            {
                this.Width = 450;
                this.Height = 450;
                BorderBackground.Width = 450;
                BorderBackground.Height = 450;

                TBinfo.FontSize = 40;
                TBhost.FontSize = 22;
                TBrentTime.FontSize = 22;
                TBclassroom.FontSize = 22;
                TBChoose.FontSize = 22;
                TBexit.FontSize = 22;
            }
        }
 public WindowIndex(Person p)
 {
     InitializeComponent();
     person = p;
 }