Browse Source
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1008 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61shortcuts
9 changed files with 137 additions and 117 deletions
@ -1,37 +0,0 @@ |
|||||||
/* |
|
||||||
* Created by SharpDevelop. |
|
||||||
* User: Forstmeier Peter |
|
||||||
* Date: 14.11.2004 |
|
||||||
* Time: 17:58 |
|
||||||
* |
|
||||||
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
|
||||||
*/ |
|
||||||
using System; |
|
||||||
using System.Windows.Forms; |
|
||||||
|
|
||||||
using ICSharpCode.Core; |
|
||||||
using ICSharpCode.SharpDevelop.Gui; |
|
||||||
|
|
||||||
|
|
||||||
///<summary>
|
|
||||||
///Main Command to Run SharpReport Addin
|
|
||||||
///</summary>
|
|
||||||
namespace SharpReportAddin.Commands { |
|
||||||
|
|
||||||
public class RunSharpReport: AbstractMenuCommand |
|
||||||
{ |
|
||||||
public override void Run() |
|
||||||
{ |
|
||||||
SharpReportView view = new SharpReportView(); |
|
||||||
if (view != null) { |
|
||||||
if (SharpReportCore.GlobalValues.IsValidPrinter()) { |
|
||||||
WorkbenchSingleton.Workbench.ShowView(view); |
|
||||||
} else { |
|
||||||
MessageService.ShowError(ResourceService.GetString("Sharpreport.Error.NoPrinter")); |
|
||||||
} |
|
||||||
|
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
@ -0,0 +1,55 @@ |
|||||||
|
/* |
||||||
|
* Created by SharpDevelop. |
||||||
|
* User: Forstmeier Helmut |
||||||
|
* Date: 19.01.2006 |
||||||
|
* Time: 10:04 |
||||||
|
* |
||||||
|
* To change this template use Tools | Options | Coding | Edit Standard Headers. |
||||||
|
*/ |
||||||
|
|
||||||
|
using System; |
||||||
|
|
||||||
|
using ICSharpCode.Core; |
||||||
|
using ICSharpCode.SharpDevelop.Gui; |
||||||
|
|
||||||
|
namespace SharpReportAddin.Commands{ |
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// This command is used when starting the <see cref="SharpReportView"></see>
|
||||||
|
/// from MainMenu/Extras/ReportGenerator
|
||||||
|
/// </summary>
|
||||||
|
///
|
||||||
|
public class RunSharpReport: AbstractMenuCommand{ |
||||||
|
|
||||||
|
public override void Run(){ |
||||||
|
SharpReportView view = new SharpReportView(); |
||||||
|
if (view != null) { |
||||||
|
if (SharpReportCore.GlobalValues.IsValidPrinter()) { |
||||||
|
WorkbenchSingleton.Workbench.ShowView(view); |
||||||
|
} else { |
||||||
|
MessageService.ShowError(ResourceService.GetString("Sharpreport.Error.NoPrinter")); |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Let the <see cref="SharpReportView"></see> update or fill
|
||||||
|
/// the <see cref="FieldsExplorer"></see>
|
||||||
|
/// </summary>
|
||||||
|
|
||||||
|
public class SetFieldsExplorer : AbstractSharpReportCommand{ |
||||||
|
public SetFieldsExplorer() { |
||||||
|
|
||||||
|
} |
||||||
|
public override void Run() { |
||||||
|
try { |
||||||
|
base.View.UpdateFieldsExplorer(); |
||||||
|
} catch (Exception) { |
||||||
|
throw; |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue