當前位置: 首頁>>代碼示例>>C#>>正文


C# Condition.find_condition_name方法代碼示例

本文整理匯總了C#中System.Condition.find_condition_name方法的典型用法代碼示例。如果您正苦於以下問題:C# Condition.find_condition_name方法的具體用法?C# Condition.find_condition_name怎麽用?C# Condition.find_condition_name使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在System.Condition的用法示例。


在下文中一共展示了Condition.find_condition_name方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: load_qsd_info

 public void load_qsd_info(string path)
 {
     this.contextMenuStripAction.Enabled = true;
     this.contextMenuStripCondition.Enabled = true;
     this.contextMenuStripData.Enabled = true;
     this.contextMenuStripRecord.Enabled = true;
     this.contextMenuStripBlock.Enabled = true;
     this.textBoxQSDName.Enabled = true;
     BinaryReader binaryReader = new BinaryReader(File.Open(path, FileMode.Open), Encoding.GetEncoding("EUC-KR"));
     this.file_version = binaryReader.ReadInt32();
     this.labelFileVersion.Text = "File version :" + this.file_version.ToString();
     this.block_count = binaryReader.ReadInt32();
     this.labelBlockCount.Text = "Block count :" + this.block_count.ToString();
     short count = binaryReader.ReadInt16();
     this.qsd_name = Encoding.UTF7.GetString(binaryReader.ReadBytes((int)count));
     this.textBoxQSDName.Text = this.qsd_name;
     this.block = new AIPEditorForm.Blck[this.block_count];
     for (int num = 0; num != this.block_count; num++)
     {
         this.block[num].record_count = binaryReader.ReadInt32();
         count = binaryReader.ReadInt16();
         this.block[num].block_name = Encoding.UTF7.GetString(binaryReader.ReadBytes((int)count));
         this.treeView.Nodes.Add(this.block[num].block_name);
         this.block[num].record = new AIPEditorForm.rcrd[this.block[num].record_count];
         for (int num2 = 0; num2 != this.block[num].record_count; num2++)
         {
             this.block[num].record[num2].if_else = binaryReader.ReadByte();
             this.block[num].record[num2].condition_count = binaryReader.ReadInt32();
             this.block[num].record[num2].action_count = binaryReader.ReadInt32();
             count = binaryReader.ReadInt16();
             this.block[num].record[num2].record_name = Encoding.UTF7.GetString(binaryReader.ReadBytes((int)count));
             this.treeView.Nodes[num].Nodes.Add(this.block[num].record[num2].record_name);
             this.treeView.Nodes[num].Nodes[num2].Nodes.Add("Condition(" + this.block[num].record[num2].condition_count.ToString() + ")");
             this.treeView.Nodes[num].Nodes[num2].Nodes.Add("Action(" + this.block[num].record[num2].action_count.ToString() + ")");
             this.block[num].record[num2].condition = new AIPEditorForm.cdtn[this.block[num].record[num2].condition_count];
             for (int num3 = 0; num3 != this.block[num].record[num2].condition_count; num3++)
             {
                 this.block[num].record[num2].condition[num3].length = binaryReader.ReadInt32();
                 this.block[num].record[num2].condition[num3].command = binaryReader.ReadInt32();
                 this.block[num].record[num2].condition[num3].data = new byte[this.block[num].record[num2].condition[num3].length - 8];
                 this.block[num].record[num2].condition[num3].data = binaryReader.ReadBytes(this.block[num].record[num2].condition[num3].length - 8);
                 Condition condition = new Condition();
                 string text = condition.find_condition_name("0x" + this.block[num].record[num2].condition[num3].command.ToString("X"), this.executableDirectoryName);
                 this.treeView.Nodes[num].Nodes[num2].Nodes[0].Nodes.Add(text);
             }
             this.block[num].record[num2].action = new AIPEditorForm.actn[this.block[num].record[num2].action_count];
             for (int num4 = 0; num4 != this.block[num].record[num2].action_count; num4++)
             {
                 this.block[num].record[num2].action[num4].length = binaryReader.ReadInt32();
                 this.block[num].record[num2].action[num4].command = binaryReader.ReadInt32();
                 this.block[num].record[num2].action[num4].data = new byte[this.block[num].record[num2].action[num4].length - 8];
                 this.block[num].record[num2].action[num4].data = binaryReader.ReadBytes(this.block[num].record[num2].action[num4].length - 8);
                 Action action = new Action();
                 string text = action.find_action_name("0x" + this.block[num].record[num2].action[num4].command.ToString("X"), this.executableDirectoryName);
                 this.treeView.Nodes[num].Nodes[num2].Nodes[1].Nodes.Add(text);
             }
         }
     }
     binaryReader.Close();
 }
開發者ID:Jiwan,項目名稱:ROSE-Dev-Workshop,代碼行數:60,代碼來源:AIPEditorForm.cs


注:本文中的System.Condition.find_condition_name方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。