public TaskArguments(ITask task,Parameter parameter) { this._task = task; this._parameter = parameter; }
public void Start(Parameter parameter) { OmissionParameter param = parameter as OmissionParameter; if (param == null) return; this.SetViewData(param); }
public void Start(Parameter parameter) { throw new NotImplementedException(); }
public void Complete(Parameter parameter) { OmissionParameter param = parameter as OmissionParameter; if (param == null) return; TabControl target = parameter.Target as TabControl; if (target == null) return; string pageKey = string.Format("{0}|{1}|{2}", param.DbName, param.NumberType, param.Dimension); string pageText = string.Format("{0}|{1}|{2}", param.CategoryName, param.NumberTypeName, param.DimensionName); string listViewKey = "omv_" + pageKey; TabPage tabPage = this.GetTabPage(target, pageKey, pageText); ListView listView = this.GetListView(tabPage, listViewKey, param); this.FillListView(listView, param.Precision); target.SelectedTab = tabPage; param.Owner.SetStatusText(pageText, string.Format("号码个数:{0}", this.viewDatas.Count)); }