本文整理汇总了C#中Snapshot.GetData方法的典型用法代码示例。如果您正苦于以下问题:C# Snapshot.GetData方法的具体用法?C# Snapshot.GetData怎么用?C# Snapshot.GetData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Snapshot
的用法示例。
在下文中一共展示了Snapshot.GetData方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: btn_Setting_Fill_SWCP_Click
//.........这里部分代码省略.........
{
string target = PN.SBL.Part.ToString().ToUpper();
if (!target.EndsWith(".VBF"))
target = target + ".VBF";
if (VBFFileNameList.Contains<string>(target))
xlSheet.Cells[Convert.ToInt32(nud_Setting_SBL_Column.Value)][i].Interior.Colorindex = 4;
else
{
if (PN.CheckFlash())
xlSheet.Cells[Convert.ToInt32(nud_Setting_SBL_Column.Value)][i].Interior.Colorindex = 3;
else
xlSheet.Cells[Convert.ToInt32(nud_Setting_SBL_Column.Value)][i].Interior.Colorindex = 27;
}
}
}
tbx_SWCP_Result.AppendText(".");
//Hardware
if (PN.Hardware != null)
{
xlSheet.Cells[Convert.ToInt32(nud_Setting_Hardware_Column.Value)][i].Value = PN.Hardware.Part.ToString();
xlSheet.Cells[Convert.ToInt32(nud_Setting_Hardware_Column.Value + 1)][i].Value = PN.Hardware.PID;
if (cbx_SWCP_ifCompare.Checked == true)
{
int result = theSS.CompareData(PN.ECUAcronym, PN.Hardware.PID, PN.Hardware.Part.ToString());
if (result == 1)
{
xlSheet.Cells[Convert.ToInt32(nud_Setting_Hardware_Column.Value)][i].Interior.Colorindex = 4;
if (xlSheet.Cells[Convert.ToInt32(nud_Setting_Hardware_Column.Value)][i].Comment != null)
xlSheet.Cells[Convert.ToInt32(nud_Setting_Hardware_Column.Value)][i].Comment.Delete();
}
else if (result == 2)
{
xlSheet.Cells[Convert.ToInt32(nud_Setting_Hardware_Column.Value)][i].Interior.Colorindex = 3;
xlSheet.Cells[Convert.ToInt32(nud_Setting_Hardware_Column.Value)][i].AddComment(theSS.GetData(PN.ECUAcronym, PN.Hardware.PID));
}
}
}
tbx_SWCP_Result.AppendText(".");
//Application
if (PN.Softwares != null)
{
for (int j = 0; j < PN.Softwares.Count; j++)
{
xlSheet.Cells[(nud_Setting_APP_Column.Value) + (j * 4)][i].Value = PN.Softwares[j].Part.ToString();
if (cbx_SWCP_ifCompare.Checked == true)
{
int result = theSS.CompareData(PN.ECUAcronym.ToString(), PN.Softwares[j].PID, PN.Softwares[j].Part.ToString());
if (result == 1)
{
xlSheet.Cells[(nud_Setting_APP_Column.Value) + (j * 4)][i].Interior.Colorindex = 4;
if (xlSheet.Cells[(nud_Setting_APP_Column.Value) + (j * 4)][i].Comment != null)
xlSheet.Cells[(nud_Setting_APP_Column.Value) + (j * 4)][i].Comment.Delete();
}
else if (result == 2)
{
if (!PN.Softwares[j].IsFlash)
xlSheet.Cells[(nud_Setting_APP_Column.Value) + (j * 4)][i].Interior.Colorindex = 3;
else
xlSheet.Cells[(nud_Setting_APP_Column.Value) + (j * 4)][i].Interior.Colorindex = 27;
xlSheet.Cells[(nud_Setting_APP_Column.Value) + (j * 4)][i].AddComment(theSS.GetData(PN.ECUAcronym, PN.Softwares[j].PID));
}
}
else if (cbx_SWCP_CompareVBF.Checked == true)