public static void Main(string[] args) { LoadConnection(); int odluka = -1; while (odluka != 0) { IspisiMenu(); Console.Write("opcija:"); odluka = IO.OcitajCeoBroj(); switch (odluka) { case 0: Console.WriteLine("Izlaz iz programa"); break; case 1: StudentUI.Menu(); break; case 2: PredmetUI.Menu(); break; case 3: NastavnikUI.Menu(); break; case 4: PohadjaUI.Menu(); break; case 5: PredajeUI.Menu(); break; default: Console.WriteLine("Nepostojeca komanda"); break; } } }
static void Main(string[] args) { StudentUI sui = new StudentUI(); do { Console.WriteLine("Commands:"); Console.WriteLine("=========================="); Console.WriteLine("Query:\t1,"); Console.WriteLine("Insert:\t2,"); Console.WriteLine("Update:\t3,"); Console.WriteLine("Delete:\t4,"); Console.WriteLine("Exit:\t0"); Console.WriteLine("=========================="); Console.Write("Enter Command Here: "); string input = Console.ReadLine(); switch (input) { case "1": sui.Query(); break; case "2": sui.Insert(); break; case "3": sui.Update(); break; case "4": sui.Delete(); break; case "0": return; } Console.WriteLine("=========================="); Console.WriteLine("Press Enter to Continue..."); Console.ReadLine(); } while (true); }
private void studentEntryButton_Click(object sender, EventArgs e) { StudentUI aStudentUi = new StudentUI(); aStudentUi.ShowDialog(); }
private void btnUpdateCerts_Click(object sender, EventArgs e) { StudentUI studentUI = new StudentUI(); studentUI.Show(); }