Browse Source

Cleanup C# BuildOptions, remove BaseAdressValidator

pull/30/head
PeterForstmeier 13 years ago
parent
commit
f26538978d
  1. 11
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptions.xaml
  2. 33
      src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptions.xaml.cs
  3. 4
      src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/HexValidator.cs

11
src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptions.xaml

@ -224,17 +224,6 @@ @@ -224,17 +224,6 @@
<Label Grid.Row="4" Grid.Column="1" HorizontalAlignment="Right"
Content="{core:Localize Dialog.ProjectOptions.Build.DLLBaseAddress}"></Label>
<!-- Hex binding
<TextBox x:Name="dllBaseAddressTextBox" Grid.Row="4" Grid.Column="2">
<TextBox.Text>
<Binding Path="DllBaseAdress" UpdateSourceTrigger="PropertyChanged">
<Binding.ValidationRules>
<optionpanels:BaseAdressValidator />
</Binding.ValidationRules>
</Binding>
</TextBox.Text>
</TextBox> -->
<!--x:Name="dllBaseAddressTextBox"-->
<TextBox Grid.Row="4" Grid.Column="2"

33
src/AddIns/BackendBindings/CSharpBinding/Project/Src/OptionPanels/BuildOptions.xaml.cs

@ -73,21 +73,6 @@ namespace CSharpBinding.OptionPanels @@ -73,21 +73,6 @@ namespace CSharpBinding.OptionPanels
}
protected override void Initialize()
{
this.UpdateProjectCommand = new RelayCommand(UpdateProjectExecute);
this.ChangeOutputPath = new RelayCommand(ChangeOutputPathExecute);
UpdateTargetFrameworkCombo();
if (DocumentationFile.Value.Length > 0) {
documentFileIsChecked = true;
}
XmlDocHelper();
this.BaseIntermediateOutputPathCommand = new RelayCommand(BaseIntermediateOutputPathExecute);
this.IntermediateOutputPathCommand = new RelayCommand(IntermediateOutputPathExecute);
SetTreatWarningAsErrorRadioButtons();
}
#region properties
public ProjectProperty<string> DefineConstants {
@ -187,6 +172,22 @@ namespace CSharpBinding.OptionPanels @@ -187,6 +172,22 @@ namespace CSharpBinding.OptionPanels
#region overrides
protected override void Initialize()
{
this.UpdateProjectCommand = new RelayCommand(UpdateProjectExecute);
this.ChangeOutputPath = new RelayCommand(ChangeOutputPathExecute);
UpdateTargetFrameworkCombo();
if (DocumentationFile.Value.Length > 0) {
documentFileIsChecked = true;
}
XmlDocHelper();
this.BaseIntermediateOutputPathCommand = new RelayCommand(BaseIntermediateOutputPathExecute);
this.IntermediateOutputPathCommand = new RelayCommand(IntermediateOutputPathExecute);
SetTreatWarningAsErrorRadioButtons();
}
protected override void Load(MSBuildBasedProject project, string configuration, string platform)
{
base.Load(project, configuration, platform);
@ -217,6 +218,8 @@ namespace CSharpBinding.OptionPanels @@ -217,6 +218,8 @@ namespace CSharpBinding.OptionPanels
}
return base.Save(project, configuration, platform);
}
#endregion
#region Documentation File

4
src/Main/Base/Project/Src/Gui/Dialogs/OptionPanels/ProjectOptions/HexValidator.cs

@ -30,7 +30,7 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels @@ -30,7 +30,7 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
return result;
}
}
/*
public class BaseAdressValidator :ValidationRule
{
public override ValidationResult Validate(object value, CultureInfo cultureInfo)
@ -49,5 +49,7 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels @@ -49,5 +49,7 @@ namespace ICSharpCode.SharpDevelop.Gui.OptionPanels
}
return result;
}
}
*/
}

Loading…
Cancel
Save