private void barButtonItemGiaoVien_ItemClick(object sender, ItemClickEventArgs e) { QLGV qLGV = new QLGV(); qLGV.TopLevel = false; panelMain.Controls.Clear(); panelMain.Dock = DockStyle.Fill; panelMain.Controls.Add(qLGV); qLGV.Dock = DockStyle.Fill; qLGV.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; qLGV.Show(); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); qLHS = new QLHS(); lg = new frmLogin(); quanLyChung = new QuanLyChung(); hocSinhSql = new HocSinhSql(); hs = new HocSinh(); giaoVienSql = new GiaoVienSql(); gv = new GiaoVien(); qLGV = new QLGV(); giangDay = new GiangDay(); giangDaySql = new GiangDaySql(); lop = new Lop(); lopSql = new LopSql(); diem = new Diem(); diemSql = new DiemSql(); userSql = new UserSql(); Application.Run(lg); }
public void THgv() { Console.ForegroundColor = ConsoleColor.Green; Console.SetCursorPosition(38, 03); Console.WriteLine(" █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█"); Console.ForegroundColor = ConsoleColor.DarkRed; Console.SetCursorPosition(38, 04); Console.WriteLine(" █ █"); Console.ForegroundColor = ConsoleColor.Magenta; Console.SetCursorPosition(38, 05); Console.WriteLine(" █ ❶ 1.Nhập thông tin giáo viên █"); Console.ForegroundColor = ConsoleColor.Yellow; Console.SetCursorPosition(38, 06); Console.WriteLine(" █ ❷ 2.Sửa thông tin giáo viên █"); Console.ForegroundColor = ConsoleColor.DarkYellow; Console.SetCursorPosition(38, 07); Console.WriteLine(" █ ❸ 3.Xóa thông tin giáo viên █"); Console.ForegroundColor = ConsoleColor.Red; Console.SetCursorPosition(38, 08); Console.WriteLine(" █ ❹ 4.Tìm giáo viên █"); Console.ForegroundColor = ConsoleColor.DarkGreen; Console.SetCursorPosition(38, 09); Console.WriteLine(" █ ❺ 5.Hiển thị thông tin giáo viên █"); Console.ForegroundColor = ConsoleColor.DarkCyan; Console.SetCursorPosition(38, 10); Console.WriteLine(" █ ❻ 6.Exit █"); Console.ForegroundColor = ConsoleColor.Yellow; Console.SetCursorPosition(38, 11); Console.WriteLine(" █ █"); Console.ForegroundColor = ConsoleColor.White; Console.SetCursorPosition(38, 12); Console.WriteLine("●▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀● "); QLGV gv = new QLGV(); int i = int.Parse(Console.ReadLine()); switch (i) { case 1: Console.Clear(); gv.Nhapgv(); break; case 6: Console.Clear(); mn.MenuChinh(); break; } }