Browse Source

update samples/CustomView

pull/297/head
Siegfried Pammer 11 years ago
parent
commit
4a6646f13e
  1. 3
      samples/CustomView/CustomView.csproj
  2. 6
      samples/CustomView/CustomView.sln
  3. 3
      samples/CustomView/MyCustomView.cs
  4. 7
      samples/CustomView/ShowCustomViewCommand.cs

3
samples/CustomView/CustomView.csproj

@ -16,7 +16,8 @@ @@ -16,7 +16,8 @@
<FileAlignment>4096</FileAlignment>
<WarningLevel>4</WarningLevel>
<TreatWarningsAsErrors>false</TreatWarningsAsErrors>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<OutputPath>..\..\AddIns\Samples\CustomView\</OutputPath>

6
samples/CustomView/CustomView.sln

@ -1,7 +1,7 @@ @@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
# SharpDevelop 4.0.0.5571
# SharpDevelop 5.0
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CustomView", "CustomView.csproj", "{F6CC3129-CF08-409A-97BE-633278B7D277}"
EndProject
Global
@ -10,9 +10,9 @@ Global @@ -10,9 +10,9 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F6CC3129-CF08-409A-97BE-633278B7D277}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F6CC3129-CF08-409A-97BE-633278B7D277}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F6CC3129-CF08-409A-97BE-633278B7D277}.Release|Any CPU.Build.0 = Release|Any CPU
{F6CC3129-CF08-409A-97BE-633278B7D277}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F6CC3129-CF08-409A-97BE-633278B7D277}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F6CC3129-CF08-409A-97BE-633278B7D277}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal

3
samples/CustomView/MyCustomView.cs

@ -25,12 +25,11 @@ @@ -25,12 +25,11 @@
// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
using ICSharpCode.SharpDevelop;
using ICSharpCode.SharpDevelop.Gui;
using System;
using System.Drawing;
using System.IO;
using System.Windows.Forms;
using ICSharpCode.SharpDevelop.Workbench;
namespace CustomView
{

7
samples/CustomView/ShowCustomViewCommand.cs

@ -25,10 +25,9 @@ @@ -25,10 +25,9 @@
// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop.Gui;
using System;
using System.Windows.Forms;
using ICSharpCode.Core;
using ICSharpCode.SharpDevelop;
namespace CustomView
{
@ -36,7 +35,7 @@ namespace CustomView @@ -36,7 +35,7 @@ namespace CustomView
{
public override void Run()
{
WorkbenchSingleton.Workbench.ShowView(new MyCustomView());
SD.Workbench.ShowView(new MyCustomView());
}
}
}

Loading…
Cancel
Save