예제 #1
0
 public TaskArguments(ITask task,Parameter parameter)
 {
     this._task = task;
     this._parameter = parameter;
 }
예제 #2
0
        public void Start(Parameter parameter)
        {
            OmissionParameter param = parameter as OmissionParameter;
            if (param == null) return;

            this.SetViewData(param);
        }
예제 #3
0
 public void Start(Parameter parameter)
 {
     throw new NotImplementedException();
 }
예제 #4
0
        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));
        }