Пример #1
0
        private void _cmdProjectOptions_Click(object sender, System.EventArgs e)
        {
            ProfilerProjectOptionsForm frm = new ProfilerProjectOptionsForm();

            frm.Project = GetCurrentProject();
            frm.Mode    = ProfilerProjectOptionsForm.ProfilerProjectMode.ModifyProject;

            frm.ShowDialog(this);
        }
Пример #2
0
        private void _cmdFileNew_Click(object sender, System.EventArgs e)
        {
            ProfilerProjectOptionsForm frm = new ProfilerProjectOptionsForm();

            frm.Mode = ProfilerProjectOptionsForm.ProfilerProjectMode.CreateProject;
            DialogResult dr = frm.ShowDialog(this);

            if (dr == DialogResult.OK)
            {
                _pic.Add(frm.Project);
                _pt.SelectProject(frm.Project);
            }
        }
Пример #3
0
        private void _pt_ExecutableDropped(string[] fileNames)
        {
            foreach (string fileName in fileNames)
            {
                ProfilerProjectOptionsForm frm = new ProfilerProjectOptionsForm();
                frm.Mode = ProfilerProjectOptionsForm.ProfilerProjectMode.CreateProject;

                // prepoulate from drag operation
                frm.Project.ApplicationName  = fileName;
                frm.Project.WorkingDirectory = Path.GetDirectoryName(fileName);

                DialogResult dr = frm.ShowDialog(this);
                if (dr == DialogResult.OK)
                {
                    _pic.Add(frm.Project);
                    _pt.SelectProject(frm.Project);
                }
            }
        }
Пример #4
0
        private void _pt_ExecutableDropped( string[] fileNames )
        {
            foreach ( string fileName in fileNames )
            {
                ProfilerProjectOptionsForm frm = new ProfilerProjectOptionsForm();
                frm.Mode = ProfilerProjectOptionsForm.ProfilerProjectMode.CreateProject;

                // prepoulate from drag operation
                frm.Project.ApplicationName = fileName;
                frm.Project.WorkingDirectory = Path.GetDirectoryName(fileName);

                DialogResult dr = frm.ShowDialog( this );
                if ( dr == DialogResult.OK )
                {
                    _pic.Add( frm.Project );
                    _pt.SelectProject( frm.Project );
                }
            }
        }
Пример #5
0
        private void _cmdProjectOptions_Click(object sender, System.EventArgs e)
        {
            ProfilerProjectOptionsForm frm = new ProfilerProjectOptionsForm();
            frm.Project = GetCurrentProject();
            frm.Mode = ProfilerProjectOptionsForm.ProfilerProjectMode.ModifyProject;

            frm.ShowDialog( this );
        }
Пример #6
0
 private void _cmdNew_Click(object sender, System.EventArgs e)
 {
     ProfilerProjectOptionsForm frm = new ProfilerProjectOptionsForm();
     frm.Mode = ProfilerProjectOptionsForm.ProfilerProjectMode.CreateProject;
     DialogResult dr = frm.ShowDialog( this );
     if ( dr == DialogResult.OK )
     {
         _pic.Add( frm.Project );
         _pt.SelectProject( frm.Project );
     }
 }