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

Commit d5d5e44

Browse files
Remove unused \Reports\Reporting.Addin
1 parent a3775b6 commit d5d5e44

4 files changed

Lines changed: 55 additions & 96 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/*
2+
* Created by SharpDevelop.
3+
* User: Peter Forstmeier
4+
* Date: 17.02.2014
5+
* Time: 20:07
6+
*
7+
* To change this template use Tools | Options | Coding | Edit Standard Headers.
8+
*/
9+
using System;
10+
using ICSharpCode.Core;
11+
using ICSharpCode.SharpDevelop.Workbench;
12+
13+
namespace ICSharpCode.Reporting.Addin.Commands
14+
{
15+
/// <summary>
16+
/// Description of ViewCommands.
17+
/// </summary>
18+
public class CreateDesignerCommand : AbstractMenuCommand
19+
{
20+
readonly OpenedFile openedFile;
21+
22+
public CreateDesignerCommand (OpenedFile openedFile) {
23+
if (openedFile == null)
24+
throw new ArgumentNullException("openedFile");
25+
this.openedFile = openedFile;
26+
}
27+
28+
public override void Run(){
29+
// var generator = new ReportDesignerGenerator();
30+
// DesignerView = new ReportDesignerView(openedFile, generator);
31+
MessageService.ShowMessage("ReportDesigner not available at the Moment","New ReportDesigner");
32+
}
33+
34+
// public ReportDesignerView DesignerView {get; private set;}
35+
}
36+
}

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/scr/DesignerBinding/DesignerBinding.cs

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,53 @@
1212
using ICSharpCode.Core;
1313
using ICSharpCode.SharpDevelop;
1414
using ICSharpCode.SharpDevelop.Workbench;
15+
using ICSharpCode.Reporting.Addin.Commands;
1516

1617
namespace ICSharpCode.Reporting.Addin.DesignerBinding {
1718

1819

1920
public class ReportDesignerBinding:IDisplayBinding {
2021

2122

22-
#region IDisplayBinding implementation
23-
2423
public bool IsPreferredBindingForFile(FileName fileName)
2524
{
2625
return true;
2726
}
2827

28+
2929
public bool CanCreateContentForFile(FileName fileName)
3030
{
3131
return Path.GetExtension(fileName).Equals(".srd", StringComparison.OrdinalIgnoreCase);
3232
}
3333

34+
3435
public double AutoDetectFileContent(FileName fileName, System.IO.Stream fileContent, string detectedMimeType)
3536
{
3637
throw new System.NotImplementedException();
3738
}
3839

40+
3941
public IViewContent CreateContentForFile(OpenedFile file)
4042
{
41-
MessageService.ShowMessage("ReportDesigner not available at the Moment","New ReportDesigner");
42-
return null;
43-
/*
43+
// MessageService.ShowMessage("ReportDesigner not available at the Moment","New ReportDesigner");
44+
// return null;
45+
4446
if (file.IsDirty) {
45-
var cmd = new ReportWizardCommand(file);
46-
cmd.Run();
47-
if (cmd.Canceled) {
48-
return null;
49-
}
50-
file.SetData(cmd.GeneratedReport.ToArray());
47+
MessageService.ShowMessage("ReportWizard not available at the Moment","New ReportDesigner");
48+
return null;
49+
// var cmd = new ReportWizardCommand(file);
50+
// cmd.Run();
51+
// if (cmd.Canceled) {
52+
// return null;
53+
// }
54+
// file.SetData(cmd.GeneratedReport.ToArray());
5155
}
52-
var viewCmd = new CreateDesignViewCommand(file);
56+
57+
var viewCmd = new CreateDesignerCommand(file);
5358
viewCmd.Run();
54-
return viewCmd.DesignerView;
55-
*/
59+
// return viewCmd.DesignerView;
60+
return null;
5661

5762
}
58-
59-
#endregion
6063
}
6164
}

src/AddIns/Misc/Reports/ICSharpCode.Reporting.Addin/ICSharpCode.Reporting.Addin.csproj

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/AddIns/Misc/Reports/ICSharpCode.Reporting.Addin/NewEmptyReport.xft

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)