Ejemplo n.º 1
0
        private void Form8_Load(object sender, EventArgs e)
        {
            Lab1.TextAlign       = ContentAlignment.MiddleCenter;
            Lab1.Left            = (this.ClientSize.Width - Lab1.Size.Width) / 2;
            label1.TextAlign     = ContentAlignment.MiddleCenter;
            label1.Left          = (this.ClientSize.Width - label1.Size.Width) / 2;
            pictureBox1.Location = new Point(Lab1.Location.X - 50 - pictureBox1.Width, pictureBox1.Location.Y);
            pictureBox2.Location = new Point(Lab1.Location.X + Lab1.Width + 50, pictureBox2.Location.Y);
            panel2.Location      = new Point(this.Width / 2 - panel2.Width / 2, this.Height / 2 - (panel2.Height / 2) - 100);
            panel3.Location      = new Point(this.Width / 2 - panel3.Width / 2, panel2.Location.Y + panel2.Height + 30);

            QuanLyKhuVuc QLKV = new QuanLyKhuVuc();
            DonViQuanLi  DV   = QLKV.LayDonVi();

            lbXa.Text       = DV.Phuong;
            lbPhuong.Text   = DV.Quan;
            lbThanhPho.Text = DV.ThanhPho;
        }
Ejemplo n.º 2
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            QuanLyKhuVuc QLKV = new QuanLyKhuVuc();

            QLKV.ThietLapKhuVuc(txtPhuong.Text, txtQuan.Text, txtThanhPho.Text);
        }