Browse Source
- bug fixes git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3881 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
9 changed files with 66 additions and 58 deletions
@ -1,11 +1,13 @@
@@ -1,11 +1,13 @@
|
||||
<UserControl x:Class="ICSharpCode.Profiler.AddIn.OptionsPanels.GeneralOptionsPanel" |
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="418" Height="300"> |
||||
<Grid> |
||||
<GroupBox Header="Data Collection" Margin="0,0,0,0" Name="groupBox1"> |
||||
<Grid> |
||||
<CheckBox Height="14" Margin="6,6,6,0" Name="chkEnableDC" VerticalAlignment="Top">Only collect data at the end of the session.</CheckBox> |
||||
<Slider Height="31" Margin="207,26,14,0" Name="slSharedMemorySize" VerticalAlignment="Top" IsDirectionReversed="False" TickPlacement="Both" Minimum="67108864" Maximum="67108864" TickFrequency="1048576" SmallChange="1048576" LargeChange="10485760" IsSnapToTickEnabled="False" /> |
||||
<Slider Margin="161,26,94,0" Name="slSharedMemorySize" IsDirectionReversed="False" TickPlacement="Both" Minimum="64" Maximum="512" TickFrequency="64" SmallChange="64" LargeChange="128" IsSnapToTickEnabled="True" /> |
||||
<Label Margin="6,26,0,0" Name="label1" Height="33.723" HorizontalAlignment="Left" VerticalAlignment="Top" Width="163">Size of temporary storage file:</Label> |
||||
<TextBlock HorizontalAlignment="Right" Margin="0,35,24,5" Width="64" Text="{Binding Value, ElementName=slSharedMemorySize, StringFormat=\{0\} MB}" /> |
||||
</Grid> |
||||
</GroupBox> |
||||
</Grid> |
||||
|
@ -1,44 +0,0 @@
@@ -1,44 +0,0 @@
|
||||
// <file>
|
||||
// <copyright see="prj:///doc/copyright.txt"/>
|
||||
// <license see="prj:///doc/license.txt"/>
|
||||
// <owner name="Siegfried Pammer" email="sie_pam@gmx.at"/>
|
||||
// <version>$Revision$</version>
|
||||
// </file>
|
||||
|
||||
using ICSharpCode.Profiler.Controller; |
||||
using System; |
||||
using System.Windows.Forms; |
||||
using System.Windows.Forms.Integration; |
||||
using ICSharpCode.Core; |
||||
using ICSharpCode.SharpDevelop; |
||||
using ICSharpCode.SharpDevelop.Gui; |
||||
|
||||
namespace ICSharpCode.Profiler.AddIn.OptionsPanels |
||||
{ |
||||
static class ProfilerOptionsWrapper |
||||
{ |
||||
static Properties properties = PropertyService.Get("ProfilerOptions", new Properties()); |
||||
|
||||
public static Properties Properties { |
||||
get { |
||||
return properties; |
||||
} |
||||
} |
||||
|
||||
public static bool EnableDC { |
||||
get { return properties.Get("EnableDC", true); } |
||||
set { properties.Set("EnableDC", value); } |
||||
} |
||||
|
||||
public static int SharedMemorySize { |
||||
get { return properties.Get("SharedMemorySize", 64 * 1024 * 1024); } |
||||
set { properties.Set("SharedMemorySize", value); } |
||||
} |
||||
|
||||
public static ProfilerOptions CreateProfilerOptions() |
||||
{ |
||||
return new ProfilerOptions(properties.Get("EnableDC", true), |
||||
properties.Get("SharedMemorySize", 64 * 1024 * 1024)); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue