本文整理汇总了C#中System.Windows.Controls.DataGridTextColumn.set_Binding方法的典型用法代码示例。如果您正苦于以下问题:C# DataGridTextColumn.set_Binding方法的具体用法?C# DataGridTextColumn.set_Binding怎么用?C# DataGridTextColumn.set_Binding使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Windows.Controls.DataGridTextColumn
的用法示例。
在下文中一共展示了DataGridTextColumn.set_Binding方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RebuildGrid
//.........这里部分代码省略.........
goto Label_028B;
Label_0272:
pair = enumerator.Current;
data = new BasicMLData(this.InputSize);
goto Label_0235;
Label_028B:
if (3 != 0)
{
goto Label_0229;
}
Label_0292:
if (1 != 0)
{
goto Label_01DC;
}
goto Label_01A8;
}
finally
{
flag = enumerator == null;
while (!flag)
{
enumerator.Dispose();
break;
}
}
}
goto Label_04E3;
}
Label_0311:
column4 = new DataGridTextColumn();
column4.set_Header("E" + (num + 1));
column4.set_Width(new DataGridLength(60.0));
column4.set_Binding(new Binding("Error[" + num + "]"));
column4.set_IsReadOnly(true);
this.dataGrid.get_Columns().Add(column4);
Label_0387:
num++;
if (2 == 0)
{
goto Label_06C9;
}
goto Label_02DA;
Label_03FD:
flag = num < this.CalcedSize;
Label_0408:
if (flag)
{
flag = this.EditMode != DataSetEditMode.TrainData;
goto Label_0465;
}
if ((((uint) num) & 0) == 0)
{
num = 0;
goto Label_02DA;
}
goto Label_0311;
Label_042A:
num++;
if ((((uint) flag) | uint.MaxValue) == 0)
{
goto Label_0408;
}
if ((((uint) num) | 0xff) != 0)
{
goto Label_03FD;
示例2: x2977a400fde1078f
private void x2977a400fde1078f()
{
IDataProcessor processor;
ErrorRec[] recArray;
int num;
double[] numArray;
double[] numArray2;
double num2;
bool flag;
xf8efd7615008d32e service = App.Services.GetService<xf8efd7615008d32e>();
if (((uint) num) <= uint.MaxValue)
{
processor = App.Services.GetService<IDataProcessor>();
recArray = new ErrorRec[this.ErrorSize];
num = 0;
goto Label_0546;
}
goto Label_0598;
Label_0028:
if (!flag)
{
goto Label_0253;
}
Label_002F:
this.RebuildGrid(this.DataCollection);
if ((((uint) num) + ((uint) num)) <= uint.MaxValue)
{
if ((((uint) flag) - ((uint) flag)) >= 0)
{
return;
}
goto Label_0598;
}
if ((((uint) num2) - ((uint) num)) >= 0)
{
goto Label_023F;
}
Label_0147:
this.errorsGrid.get_Columns().Clear();
if (((uint) num2) < 0)
{
goto Label_0546;
}
DataGridTextColumn item = new DataGridTextColumn();
item.set_Header("Выход");
item.set_Width(new DataGridLength(60.0));
item.set_Binding(new Binding("Title"));
item.set_IsReadOnly(true);
this.errorsGrid.get_Columns().Add(item);
if ((((uint) num) + ((uint) flag)) < 0)
{
goto Label_0028;
}
DataGridTextColumn column2 = new DataGridTextColumn();
column2.set_Header("Средн. кв. отн. (%)");
column2.set_Width(new DataGridLength(150.0));
column2.set_Binding(new Binding("RME"));
column2.set_IsReadOnly(true);
this.errorsGrid.get_Columns().Add(column2);
DataGridTextColumn column3 = new DataGridTextColumn();
column3.set_Header("Отн. погрешность (%)");
column3.set_Width(new DataGridLength(150.0));
column3.set_Binding(new Binding("AvgErr"));
column3.set_IsReadOnly(true);
this.errorsGrid.get_Columns().Add(column3);
DataGridTextColumn column4 = new DataGridTextColumn();
column4.set_Header("Средн. кв. (норм.)");
column4.set_Width(new DataGridLength(150.0));
column4.set_Binding(new Binding("RMEN"));
column4.set_IsReadOnly(true);
this.errorsGrid.get_Columns().Add(column4);
this.errorsGrid.ItemsSource = recArray;
this.errorsGrid.Visibility = Visibility.Visible;
goto Label_002F;
Label_023F:
flag = this.EditMode != DataSetEditMode.CheckData;
if (0 == 0)
{
goto Label_0028;
}
Label_0253:
this.errorsGrid.set_CanUserAddRows(false);
goto Label_0147;
Label_0509:
num = 0;
Label_02AE:
flag = num < this.ErrorSize;
if (flag)
{
recArray[num].RME = Math.Round(numArray2[num], 4);
recArray[num].AvgErr = Math.Round(numArray[num], 4);
}
else if (((uint) num) >= 0)
{
goto Label_023F;
}
recArray[num].MaxErr = Math.Round(recArray[num].MaxErr, 4);
if ((((uint) num2) + ((uint) flag)) >= 0)
{
num++;
//.........这里部分代码省略.........
示例3: xf4e7b53eedfb7d89
public void xf4e7b53eedfb7d89()
{
BasicMLDataSet set2;
bool flag;
double[] numArray;
double[] numArray2;
double[] numArray3;
double[] numArray4;
DataSetEditor.ErrorRec[] recArray;
int num;
DataSetEditor.ErrorRec rec;
DataGridTextColumn column2;
DataGridTextColumn column5;
bool flag2;
BasicMLDataSet set = App.Services.GetService<ITrainData>().xd378208b5267f7e2();
goto Label_042B;
Label_001D:
this.errorsGrid.ItemsSource = recArray;
if ((((uint) flag) & 0) != 0)
{
goto Label_03DF;
}
return;
Label_0108:
column5 = new DataGridTextColumn();
column5.set_Header("Отн. погр.(%)");
column5.set_Width(new DataGridLength(100.0));
column5.set_Binding(new Binding("AvgErr"));
column5.set_IsReadOnly(true);
this.errorsGrid.get_Columns().Add(column5);
Label_0160:
flag2 = !flag;
if (!flag2)
{
DataGridTextColumn item = new DataGridTextColumn();
item.set_Header("Ср.кв.отн.(Т)(%)");
item.set_Width(new DataGridLength(100.0));
item.set_Binding(new Binding("RMEN"));
item.set_IsReadOnly(true);
this.errorsGrid.get_Columns().Add(item);
}
else
{
goto Label_001D;
}
Label_01C4:
column2 = new DataGridTextColumn();
column2.set_Header("Отн. погр.(Т)(%)");
column2.set_Width(new DataGridLength(100.0));
column2.set_Binding(new Binding("MaxErr"));
column2.set_IsReadOnly(true);
this.errorsGrid.get_Columns().Add(column2);
if ((((uint) flag2) | 1) == 0)
{
goto Label_03D0;
}
do
{
if ((((uint) flag) & 0) != 0)
{
goto Label_01C4;
}
}
while ((((uint) flag2) + ((uint) flag2)) < 0);
if ((((uint) flag) & 0) != 0)
{
goto Label_0160;
}
goto Label_001D;
Label_0227:
flag2 = num < set.IdealSize;
if (!flag2)
{
DataGridTextColumn column3 = new DataGridTextColumn();
column3.set_Header("Выход");
column3.set_Width(new DataGridLength(50.0));
column3.set_Binding(new Binding("Title"));
column3.set_IsReadOnly(true);
this.errorsGrid.get_Columns().Add(column3);
DataGridTextColumn column4 = new DataGridTextColumn();
column4.set_Header("Ср.кв.отн.(%)");
column4.set_Width(new DataGridLength(100.0));
column4.set_Binding(new Binding("RME"));
column4.set_IsReadOnly(true);
this.errorsGrid.get_Columns().Add(column4);
goto Label_0108;
}
Label_0300:
rec = new DataSetEditor.ErrorRec();
rec.Title = "Y" + (num + 1);
rec.RME = Math.Round(numArray[num], 4);
rec.AvgErr = Math.Round(numArray2[num], 4);
recArray[num] = rec;
goto Label_03B9;
Label_037F:
this.errorsGrid.set_CanUserAddRows(false);
this.errorsGrid.get_Columns().Clear();
base.Height = 0x19 + (0x19 * set.IdealSize);
recArray = new DataSetEditor.ErrorRec[set.IdealSize];
if ((((uint) flag2) | 0xff) != 0)
//.........这里部分代码省略.........