public void ShowText() { texts.Clear(); int count = columnArgs.Count; foreach (FuzzyData.FuzzyObject ob in value.Data) { // 列表生成 Help.AnotherTextManager[] ts = new Help.AnotherTextManager[count]; // 抓取CODE FuzzyData.FuzzyFixnum fixnum_code = GetParameter(ob, code) as FuzzyData.FuzzyFixnum; // 若获取 CODE 失败 if (fixnum_code == null) { ts[0] = new Help.AnotherTextManager(); ts[0].Initialize("!NO CODE"); for (int i = 1; i < count; i++) { ts[i] = new Help.AnotherTextManager(); } } // 若获取 CODE 成功 else { int CODE = Convert.ToInt32(fixnum_code.Value); for (int i = 0; i < count; i++) { ts[i] = new Help.AnotherTextManager(); ts[i].Initialize(columnArgs[i][CODE], GetParameters(ob)); } } texts.Add(ts); } PushText(); }
public void ShowText() { TextTable.Clear(); int count = ColumnArgs.Count; object temp = null; foreach (FuzzyData.FuzzyObject ob in value.Data) { Help.AnotherTextManager[] ts = new Help.AnotherTextManager[count]; for (int i = 0; i < count; i++) { temp = null; ts[i] = new Help.AnotherTextManager(); ob.InstanceVariables.TryGetValue(ColumnArgs[i].Actual, out temp); if (temp != null) { ts[i].Initialize(ColumnArgs[i].Format, temp); } } TextTable.Add(ts); } RefreshText(); }