private void _cmdProjectOptions_Click(object sender, System.EventArgs e) { ProfilerProjectOptionsForm frm = new ProfilerProjectOptionsForm(); frm.Project = GetCurrentProject(); frm.Mode = ProfilerProjectOptionsForm.ProfilerProjectMode.ModifyProject; frm.ShowDialog(this); }
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); } }
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); } } }
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 ); } } }
private void _cmdProjectOptions_Click(object sender, System.EventArgs e) { ProfilerProjectOptionsForm frm = new ProfilerProjectOptionsForm(); frm.Project = GetCurrentProject(); frm.Mode = ProfilerProjectOptionsForm.ProfilerProjectMode.ModifyProject; frm.ShowDialog( this ); }
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 ); } }