public MetSala() { MetGet(); if (KeyGet() != 0) { Environment.Exit(0); } InitializeComponent(); //login.MdiParent = this; innskraning login = new innskraning(); if (login.ShowDialog() != DialogResult.OK) { Close(); } samnForm = new samningar(); vidskmForm = new vidskm(); eprent = new endurp(); soluForm = new reikningar(""); samnForm.MdiParent = this; samnForm.TopLevel = false; samnForm.Dock = DockStyle.Fill; samnForm.Text = "MetSala Samningar"; samnForm.Parent = panel1; vidskmForm.MdiParent = this; vidskmForm.TopLevel = false; vidskmForm.Dock = DockStyle.Fill; vidskmForm.Text = "MetSala Viðskiptamenn"; vidskmForm.Parent = panel1; eprent.MdiParent = this; eprent.Parent = panel1; eprent.TopLevel = false; //eprent.Show(); eprent.PerformAutoScale(); solumadur = login.solumadur; soluForm.MdiParent = this; soluForm.TopLevel = false; soluForm.Dock = DockStyle.Fill; soluForm.Text = "MetSala Sölukerfi"; soluForm.Parent = panel1; soluForm.solum = solumadur; soluForm.Show(); }
private void button4_Click(object sender, EventArgs e) { samningar gl1 = new samningar(); gl1.ShowDialog(); }