public void TestMVCModelAddItem() { Console.WriteLine("Number of Records Before: " + modelDS.Tables[0].Rows.Count); model.AddTodoListItem(); newModelDS = model.GetTodoList(); Console.WriteLine("Number of Records After: " + newModelDS.Tables[0].Rows.Count); Console.WriteLine(newModelDS.Tables[0].Rows[newModelDS.Tables[0].Rows.Count - 1]["Title"] + " - " + newModelDS.Tables[0].Rows[newModelDS.Tables[0].Rows.Count - 1]["Text"]); }
public void Init() { model = new TodoListModel(); controller = new TodoControllerWin(); modelDS = model.GetTodoList(); controllerDS = controller.GetTodoList(); }
public void Init() { model = new TodoListModel(); controller = new TodoControllerWin(); modelDS = model.GetTodoList(); controllerDS = controller.GetTodoList(); }
public DataSet GetTodoList() { return(todoModel.GetTodoList()); }
public System.Data.DataSet GetTodoList() { return(todoModel.GetTodoList()); }