示例#1
0
 public static AllTaskproxy instances()
 {
     if (instance == null)
     {
         instance = new AllTaskproxy();
     }
     return(instance);
 }
示例#2
0
 public static AllTaskproxy instances()
 {
     if (instance == null)
     {
         instance = new AllTaskproxy();
     }
     instance.ModelToDoView();
     return(instance);
 }
示例#3
0
    public void Todo(Observer isa)
    {
        List <Taskmodel> taskmodellist = Taskproxy.instances().getmodellist();

        for (int i = 0; i < taskmodellist.Count; i++)
        {
            if (taskmodellist[i].HaveTid != 0)
            {
                taskmodellist[i].alltaskmodel = AllTaskproxy.instances().GetmodelbyId(taskmodellist[i].HaveTid);
            }
        }

        if ((string)isa.body == "main")
        {
            AppFactory.instances.viewTodo(new Observer("showtask", taskmodellist));
        }
        else if ((string)isa.body == "else")
        {
            AppFactory.instances.viewTodo(new Observer("showAlerttask", taskmodellist));
        }
    }