Beispiel #1
0
        private void treeFiles_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Right)
            {
                return;
            }
            TreeNode n = treeFiles.SelectedNode;

            if (n == null)
            {
                return;
            }

            ProjectFile file;

            if (myProject.FileList.TryGetValue(n.Text, out file))
            {
                if (file.FileExt != "h")
                {
                    frmFileOptions optDialog = new frmFileOptions(file);
                    optDialog.ShowDialog();
                }
            }
        }
        private void treeFiles_MouseClick(object sender, MouseEventArgs e)
        {
            if (e.Button != MouseButtons.Right)
                return;
            TreeNode n = treeFiles.SelectedNode;
            if (n == null)
                return;

            ProjectFile file;
            if (myProject.FileList.TryGetValue(n.Text, out file))
            {
                if (file.FileExt != "h")
                {
                    frmFileOptions optDialog = new frmFileOptions(file);
                    optDialog.ShowDialog();
                }
            }
        }