private void RefreshAllData() { var task = new TaskElectricityFilter("更新数据", new FilterCondition(DateTime.Now, DateTime.Now, _nodeTreeControl.CurrentNodeMid, CurrentPID), SetElectricityData, true); TaskPool.AddTask(task, TaskScheduler.FromCurrentSynchronizationContext()); var taskNode = new TaskFetchNodes("更新节点", new ConditionBase(CurrentPID), SetNodesData); TaskPool.AddTask(taskNode, TaskScheduler.FromCurrentSynchronizationContext()); var taskCharge = new TaskChargeFilter("获取当天计费信息", new ChargeFilterCondition( new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 0, 0, 0), DateTime.Now, DateTime.Now, _nodeTreeControl.CurrentNodeMid, CurrentPID), SetChargeData); TaskPool.AddTask(taskCharge, TaskScheduler.FromCurrentSynchronizationContext()); // var taskChargeEachDay = }