private void mbtnSetOpt_Click(object sender, EventArgs e) { TreeNode tn = treeView1.SelectedNode; if (tn != null) { if (tn != rootNode && tn != sourceNode && tn != headerNode && tn != otherNode && tn.Parent == sourceNode && !IsNoticeNode(tn)) { ProjectFile file; if (project.FileList.TryGetValue(tn.Text.ToLowerInvariant(), out file)) { if (file.FileExt != "pde") { FileOptionsDialog optForm = new FileOptionsDialog(file); optForm.ShowDialog(); } } } } }
private void mbtnSetOpt_Click(object sender, EventArgs e) { TreeNode tn = treeView1.SelectedNode; if (tn != null) if (tn != rootNode && tn != sourceNode && tn != headerNode && tn != otherNode && tn.Parent == sourceNode && !IsNoticeNode(tn)) { ProjectFile file; if (project.FileList.TryGetValue(tn.Text.ToLowerInvariant(), out file)) { if (file.FileExt != "pde") { FileOptionsDialog optForm = new FileOptionsDialog(file); optForm.ShowDialog(); } } } }