Exemplo n.º 1
0
		private void menuItem12_Click(object sender, System.EventArgs e)
		{
			ProfilingSelector perfSelector=new ProfilingSelector(PROFILEE_TYPE.PROFILE_DESKTOP_APP);
			perfSelector.Show();
		}
Exemplo n.º 2
0
		private void menuItem13_Click(object sender, System.EventArgs e)
		{
			ProfilingSelector perfSelector=new ProfilingSelector(PROFILEE_TYPE.PROFILE_BACKGROUND_PROCESS);
			perfSelector.Show(); 
		}
Exemplo n.º 3
0
		private void stackControl_StackControl_ItemSelected(string itemClicked)
		{
			switch (itemClicked.Trim().ToUpper() )
			{
				case "PROFILE DESKTOP APPLICATION.":				
				{					
					ProfilingSelector perfSelector=new ProfilingSelector(PROFILEE_TYPE.PROFILE_DESKTOP_APP);
					perfSelector.Show();
					break;
				}
				case "PROFILE WINDOWS SERVICE.":
				case "PROFILE ASP.NET":
				case "PROFILE COM+ APPLICATION.":
				{
					ProfilingSelector perfSelector=new ProfilingSelector(PROFILEE_TYPE.PROFILE_BACKGROUND_PROCESS);
					perfSelector.Show(); 
					break;
				}
				case "OPEN PERFORMANCE RESULTS.":
				{
					OpenPerformanceSession();
					break;
				}
				case "OPEN MEMORY RESULTS.":
				{
					OpenMemorySession();
					break;
				}
				case "COMPARE TWO MEMORY SNAPSHOTS.":
				{
					ComparisonSessionSelector comparisonDialog=new ComparisonSessionSelector();			
					comparisonDialog.ShowDialog(this);  	
					break;
				}				
				case "SUGGEST A FEATURE.":
				case "REPORT A BUG.":
				{
					try
					{
						string strExplorer=Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles)+"\\Internet Explorer\\iexplore.exe";				
						System.Diagnostics.ProcessStartInfo pInfo=new System.Diagnostics.ProcessStartInfo(strExplorer,"\""+"www.SoftProdigy.com\\Contact.aspx"+"\"");				
						pInfo.WorkingDirectory =Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles)+"\\Internet Explorer";
						pInfo.UseShellExecute =false;
						System.Diagnostics.Process.Start(pInfo);			
					}
					catch(Exception ex)
					{
						MessageBox.Show("Unable to connect to the website\n"+ex.Message+"\n You may need to visit www.SoftProdigy.com manually.","Error!");				
					}
		
					break;
				}
				case "ASK FOR A CUSTOMIZATION.":
				{
					try
					{
						string strExplorer=Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles)+"\\Internet Explorer\\iexplore.exe";				
						System.Diagnostics.ProcessStartInfo pInfo=new System.Diagnostics.ProcessStartInfo(strExplorer,"\""+"mailto:[email protected]?Subject=I need ProfileSharp to be customized to my requirements.Please do it so for me."+"\"");				
						pInfo.WorkingDirectory =Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles)+"\\Internet Explorer";
						pInfo.UseShellExecute =false;
						System.Diagnostics.Process.Start(pInfo);			
					}
					catch(Exception ex)
					{
						MessageBox.Show("Unable to connect to SoftProdigy.\n"+ex.Message+"\n Please drop in a mail to [email protected] with 'Product Customization Required' as subject.","Error!");				
					}
		
					break;
				}
				case "VIEW HELP FILE.":
				{
					OpenProductDocumentation();
					break;
				}
				case "PROFILESHARP LICENSE AGREEMENT.":
				{
					try
					{
						License license=new License();
						license.ShowDialog(this); 
					}
					catch(Exception ex)
					{
						MessageBox.Show("Unable to show the 'License-Agreement'\n"+ex.Message+"\n You may need to visit SoftProdigy's official website to acknowledge the 'License-Agreement'. ","Error!");				
					}
					break;
				}
				case "CHECK FOR UPDATES.":
				{
					try
					{
						string strExplorer=Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles)+"\\Internet Explorer\\iexplore.exe";				
						System.Diagnostics.ProcessStartInfo pInfo=new System.Diagnostics.ProcessStartInfo(strExplorer,"\""+"www.SoftProdigy.com"+"\"");				
						pInfo.WorkingDirectory =Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles)+"\\Internet Explorer";
						pInfo.UseShellExecute =false;
						System.Diagnostics.Process.Start(pInfo);			
					}
					catch(Exception ex)
					{
						MessageBox.Show("Unable to connect to the website\n"+ex.Message+"\n You may need to visit www.SoftProdigy.com manually.","Error!");				
					}
		
					break;
				}
				case "ABOUT US.":
				{
					About a=new About();
					a.ShowDialog(this);
					break;
				}
			}
		}