本文整理汇总了C#中cExtendedTable.RemoveAt方法的典型用法代码示例。如果您正苦于以下问题:C# cExtendedTable.RemoveAt方法的具体用法?C# cExtendedTable.RemoveAt怎么用?C# cExtendedTable.RemoveAt使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cExtendedTable
的用法示例。
在下文中一共展示了cExtendedTable.RemoveAt方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ToolStripMenuItem_CrossZFactor
private void ToolStripMenuItem_CrossZFactor(object sender, EventArgs e)
{
cGUI_ListSingleClasse GUI_ListClasses = new cGUI_ListSingleClasse();
GUI_ListClasses.IsCheckBoxes = true;
if (GUI_ListClasses.Run().IsSucceed == false) return;
cExtendedList ListClassSelected = GUI_ListClasses.GetOutPut();
int ClassId = 0;
//int NumActiveDesc = 0;
//foreach (cDescriptorType DescType in this.GlobalInfo.CurrentScreening.ListDescriptors)
//{
// if (DescType.IsActive() == false) continue;
// NumActiveDesc++;
//}
cExtendedTable FinalListValues = new cExtendedTable();
cExtendedTable TmpTable = new cExtendedTable();
TmpTable.Add(new cExtendedList("Sorted Z'"));
TmpTable.ListRowNames = new List<string>();
TmpTable[0].ListTags = new List<object>();
// TmpTable.ListTags = new List<object>();
for (int IdxDesc = 0; IdxDesc < cGlobalInfo.CurrentScreening.ListDescriptors.Count; IdxDesc++)
{
cDescriptorType CurrentDescType = cGlobalInfo.CurrentScreening.ListDescriptors[IdxDesc];
if (CurrentDescType.IsActive() == false) continue;
cExtendedTable ListSource = new cExtendedTable();
// int IdxClasse =0;
foreach (var item in cGlobalInfo.ListWellClasses)
{
// if (ListClassSelected[0][IdxClasse] == 1)
ListSource.Add(new cExtendedList(item.Name));
// if (ListClassSelected[1][IdxClasse] == 1)
//ListDestination.Add(new cExtendedList(item.Name));
// IdxClasse++;
}
foreach (cWell TmpWell in cGlobalInfo.ListSelectedWell)
{
ClassId = TmpWell.GetCurrentClassIdx();
if (ClassId > -1)
{
if (GUI_ListClasses.GetOutPut()[ClassId] == 1)
ListSource[ClassId].Add(TmpWell.GetAverageValue(CurrentDescType));
//if (GUI_ListClasses.GetOutPut()[1][ClassId] == 1)
//ListDestination[ClassId].Add(TmpWell.GetAverageValue(CurrentDescType));
}
}
int InitCount = ListSource.Count;
for (int i = 0; i < ListSource.Count; i++)
{
if (ListSource[i].Count < 2)
{
ListSource.RemoveAt(i);
i--;
}
}
// if (ListSource.Count == 0) return;
cZFactor ZF = new cZFactor();
ZF.SetInputData(ListSource);
cFeedBackMessage FM = ZF.Run();
richTextBoxConsole.AppendText(FM.Message);
if (!FM.IsSucceed) return;
cExtendedTable ListValues = ZF.GetOutPut();
for (int i = 0; i < ListValues.Count; i++)
{
for (int j = 0; j < i; j++)
{
TmpTable[0].Add(ListValues[i][j]);
TmpTable.ListRowNames.Add(ListValues[i].Name + " vs. " + ListValues[j].Name + " - [" + CurrentDescType.GetName() + "]");
TmpTable[0].ListTags.Add(CurrentDescType);
}
}
}
cSort S = new cSort();
S.SetInputData(TmpTable);
S.IsAscending = false;
S.Run();
//cViewerTable VT1 = new cViewerTable();
//VT1.SetInputData(ListValues);
//VT1.Run();
cViewerTable VT2 = new cViewerTable();
//.........这里部分代码省略.........