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"]);
 }
示例#2
0
 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();
 }
示例#4
0
 public DataSet GetTodoList()
 {
     return(todoModel.GetTodoList());
 }
        public System.Data.DataSet GetTodoList()

        {
            return(todoModel.GetTodoList());
        }