Ejemplo n.º 1
0
        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();
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
        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();
                        }
                    }
                }
        }