public static AllTaskproxy instances() { if (instance == null) { instance = new AllTaskproxy(); } return(instance); }
public static AllTaskproxy instances() { if (instance == null) { instance = new AllTaskproxy(); } instance.ModelToDoView(); return(instance); }
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)); } }