本文整理汇总了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();
}