private void RunStud() { StudController std = new StudController(); Console.Clear(); Console.WriteLine("StudController\n\nCommands:\n" + std.GetCommands()); string inp = null; string com = null; while (std.isActive) { Console.WriteLine("Command:"); com = Console.ReadLine(); Console.WriteLine("Input:"); inp = Console.ReadLine(); Console.Clear(); Console.WriteLine(std.CheckInput(inp, com)); } }
protected void btn_Insert_Click(object sender, EventArgs e) { StudController sc = new StudController(); sc.createStudent(Convert.ToInt32(txt_StudId.Text), txt_StudName.Text, Convert.ToInt32(txt_StudMarks.Text)); }