Skip to content
This repository has been archived by the owner on Oct 16, 2020. It is now read-only.

Commit

Permalink
remove unused *.xrfm File, small cleanup in PythonBinding
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterForstmeier committed May 26, 2012
1 parent 585bb4e commit 8af15ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 73 deletions.
Expand Up @@ -214,7 +214,6 @@
<None Include="PythonBinding.addin">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<EmbeddedResource Include="Resources\PythonOptionsPanel.xfrm" />
<EmbeddedResource Include="Resources\ApplicationSettingsPanel.xfrm" />
<EmbeddedResource Include="Resources\CompilingOptionsPanel.xfrm" />
<None Include="Templates\ConsoleProject.xpt">
Expand Down Expand Up @@ -276,6 +275,10 @@
<Name>ICSharpCode.SharpDevelop</Name>
<Private>False</Private>
</ProjectReference>
<ProjectReference Include="..\..\..\..\..\Main\Base\Project\ICSharpCode.SharpDevelop.csproj">
<Project>{2748AD25-9C63-4E12-877B-4DCE96FBED54}</Project>
<Name>ICSharpCode.SharpDevelop</Name>
</ProjectReference>
<ProjectReference Include="..\..\..\..\..\Main\Core\Project\ICSharpCode.Core.csproj">
<Project>{35CEF10F-2D4C-45F2-9DD1-161E0FEC583C}</Project>
<Name>ICSharpCode.Core</Name>
Expand Down

This file was deleted.

Expand Up @@ -3,12 +3,11 @@

using System;
using System.ComponentModel;
using System.Windows.Controls;
using System.Windows.Input;

using ICSharpCode.SharpDevelop.Gui;
using ICSharpCode.SharpDevelop.Gui.OptionPanels;
using ICSharpCode.SharpDevelop.Widgets;
using Microsoft.Win32;
using SDCore = ICSharpCode.Core;

namespace ICSharpCode.PythonBinding
Expand All @@ -34,7 +33,7 @@ public PythonOptionsPanel()
get { return pythonFileName; }
set {
pythonFileName = value;
OnPropertyChanged("PythonFileName");
base.RaisePropertyChanged(() => PythonFileName);
}
}

Expand All @@ -45,11 +44,10 @@ public PythonOptionsPanel()

void Browse()
{
var dialog = new OpenFileDialog();
dialog.Filter = SDCore.StringParser.Parse("${res:SharpDevelop.FileFilter.ExecutableFiles}|*.exe");
if (dialog.ShowDialog() ?? false) {
PythonFileName = dialog.FileName;
}
var str = OptionsHelper.OpenFile (SDCore.StringParser.Parse("${res:SharpDevelop.FileFilter.ExecutableFiles}|*.exe"));
if (String.IsNullOrEmpty(str))
return;
PythonFileName = str;
}

public override bool SaveOptions()
Expand All @@ -58,14 +56,5 @@ public override bool SaveOptions()
options.PythonLibraryPath = pythonLibraryPath;
return true;
}

public event PropertyChangedEventHandler PropertyChanged;

void OnPropertyChanged(string name)
{
if (PropertyChanged != null) {
PropertyChanged(this, new PropertyChangedEventArgs(name));
}
}
}
}

0 comments on commit 8af15ec

Please sign in to comment.