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

Commit e6b7ed9

Browse files
WizardPages
1 parent e829344 commit e6b7ed9

7 files changed

Lines changed: 10 additions & 31 deletions

File tree

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/DesignableItems/BaseSection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ public BaseSection():base()
2525
{
2626
FrameColor = Color.Black;
2727
TypeDescriptor.AddProvider(new SectionItemTypeProvider(), typeof(BaseSection));
28+
var s = Size;
2829
}
2930

3031

31-
// [EditorBrowsableAttribute()]
3232
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
3333
{
3434
base.OnPaint(e);

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public ReportModel CreateModelFromXml(XmlElement elem,IDesignerHost host)
6161

6262
foreach (XmlNode sectionNode in sectionList) {
6363
try {
64-
object o = this.Load(sectionNode as XmlElement,null);
64+
var o = this.Load(sectionNode as XmlElement,null);
6565
var section = o as ICSharpCode.Reporting.Addin.DesignableItems.BaseSection;
6666
host.Container.Add(section);
6767
} catch (Exception e) {
@@ -85,8 +85,6 @@ protected override Type GetTypeByName(string ns, string name)
8585
{
8686
var a = Assembly.GetExecutingAssembly();
8787
Type t = a.GetType("ICSharpCode.Reporting.Addin.DesignableItems" + "." + name);
88-
// Type t = typeof(BaseSection).Assembly.GetType(typeof(BaseSection).Namespace + "." + name);
89-
9088
return t;
9189
}
9290
}

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/BaseSettingsPage.xaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</ObjectDataProvider>
3333
</xctk:WizardPage.Resources>
3434

35-
<Grid ShowGridLines="True" >
35+
<Grid>
3636
<Grid.RowDefinitions>
3737
<RowDefinition Height="Auto"> </RowDefinition>
3838
<RowDefinition Height="Auto"></RowDefinition>
@@ -74,7 +74,8 @@
7474

7575

7676
<Label Content="Page Layout :" Grid.Column="1" Grid.Row="6" Margin="0,5,0,5"></Label>
77-
<RadioButton Name="_Legal" GroupName="PageLayout" Content="Legal" IsChecked="true" Grid.Column="1" Grid.Row="7" Margin="0,5,0,5" ></RadioButton>
77+
78+
<RadioButton Name="_Legal" GroupName="PageLayout" Content="Legal" Grid.Column="1" Grid.Row="7" Margin="0,5,0,5" ></RadioButton>
7879
<RadioButton Name="_Landscape" GroupName="PageLayout" Content="Landscape" Grid.Row="7" Grid.Column="2" Margin="0,5,0,5"></RadioButton>
7980

8081
</Grid>

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/BaseSettingsPage.xaml.cs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,9 @@
77
* To change this template use Tools | Options | Coding | Edit Standard Headers.
88
*/
99
using System;
10-
using System.Drawing;
11-
using System.Drawing.Imaging;
12-
using System.IO;
1310
using System.Windows;
1411
using System.Windows.Controls;
15-
using System.Windows.Media.Imaging;
1612
using ICSharpCode.Reporting.Globals;
17-
using ICSharpCode.SharpDevelop;
1813
using Xceed.Wpf.Toolkit;
1914
using ICSharpCode.Reporting.Addin.ReportWizard.ViewModels;
2015

@@ -30,11 +25,13 @@ public partial class BaseSettingsPage : WizardPage,IHasContext
3025
public BaseSettingsPage()
3126
{
3227
InitializeComponent();
28+
29+
_DataModel.SelectedItem = PushPullModel.FormSheet;
3330
_DataModel.SelectedItem = PushPullModel.FormSheet;
3431
_ReportType.SelectedItem = ReportType.FormSheet;
35-
this.context = new PageOneContext();
36-
this._DataModel.SelectedItem = PushPullModel.FormSheet;
3732
_image.Source = WizardHelper.GetWizardIcon();
33+
_Legal.IsChecked = true;
34+
this.context = new PageOneContext();
3835
}
3936

4037

@@ -50,7 +47,7 @@ public WizardPageType ReportPageType {
5047

5148

5249
void UpdateContext(){
53-
50+
Console.WriteLine("Legal at bbbb {0}",_Legal.IsChecked);
5451
context.DataModel = (PushPullModel) _DataModel.SelectedItem;
5552
context.ReportType = (ReportType) _ReportType.SelectedItem;
5653
context.ReportName = this._ReportName.Text;

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/ReportWizard.xaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77
Height="600" Width="800">
88

99
<xctk:Wizard x:Name="_wizard" FinishButtonClosesWindow="True"
10-
Next="_wizard_Next"
1110
NextButtonVisibility="Visible"
1211
CancelButtonVisibility="Visible"
13-
PageChanged="_wizard_PageChanged"
1412
Finish="_wizard_Finish"
1513
CanHelp="False">
1614

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/Dialog/ReportWizard.xaml.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,12 @@ namespace ICSharpCode.Reporting.Addin.ReportWizard.Dialog
2626
public partial class ReportWizard : Window
2727
{
2828
readonly ReportWizardContext context;
29-
readonly BaseSettingsPage baseSettingsPage;
30-
3129
public ReportWizard(ReportWizardContext context)
3230
{
3331
InitializeComponent();
3432
this.context = context;
35-
baseSettingsPage = new BaseSettingsPage();
36-
}
37-
38-
39-
void _wizard_Next(object sender, Xceed.Wpf.Toolkit.Core.CancelRoutedEventArgs e)
40-
{
41-
Console.WriteLine(" _wizard_Next {0}",((Wizard)sender).CurrentPage.Name);
4233
}
43-
4434

45-
void _wizard_PageChanged(object sender, RoutedEventArgs e)
46-
{
47-
Console.WriteLine("_wizard_PageChanged {0}",((Wizard)sender).CurrentPage.Name);
48-
}
4935

5036
void _wizard_Finish(object sender, RoutedEventArgs e)
5137
{

src/AddIns/Misc/Reporting/ICSharpCode.Reporting.Addin/src/ReportWizard/ReportGenerator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ void GeneratePushModel(ReportWizardContext context){
6666
dataItem.Location = location;
6767
dataItem.Size = GlobalValues.PreferedSize;
6868
xLocation = xLocation + GlobalValues.PreferedSize.Width + gap;
69-
Console.WriteLine("Create dataItem with {0} - {1}items",dataItem.Location,dataItem.Size);
7069
ReportModel.DetailSection.Items.Add(dataItem);
7170
}
7271
}

0 commit comments

Comments
 (0)