当前位置: 首页>>代码示例>>C#>>正文


C# Snapshot.GetData方法代码示例

本文整理汇总了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)
开发者ID:demonzhq,项目名称:JLR,代码行数:67,代码来源:SoftwareTools.cs


注:本文中的Snapshot.GetData方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。