Renamed dialogs

This commit is contained in:
Mattias Gustavsson 2020-10-26 13:17:05 +01:00
parent b587e1a7d8
commit 8a9a7ca64d
9 changed files with 37 additions and 37 deletions

View File

@ -3,12 +3,12 @@ using System.Drawing;
namespace Symphony namespace Symphony
{ {
public partial class CloseDlg : WixSharp.UI.Forms.ManagedForm, IManagedDialog public partial class CloseDialog : WixSharp.UI.Forms.ManagedForm, IManagedDialog
{ {
const int WelcomeDlgIndex = 0; const int WelcomeDlgIndex = 0;
const int InstallDirIndex = 1; const int InstallDirIndex = 1;
public CloseDlg() public CloseDialog()
{ {
InitializeComponent(); InitializeComponent();
} }

View File

@ -1,7 +1,7 @@
// This file is created and modified from the visual form designer in Visual Studio, so shouldn't need to be modified by hand // This file is created and modified from the visual form designer in Visual Studio, so shouldn't need to be modified by hand
namespace Symphony namespace Symphony
{ {
partial class CloseDlg partial class CloseDialog
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -157,12 +157,12 @@ namespace Symphony
this.closeButton.UseVisualStyleBackColor = true; this.closeButton.UseVisualStyleBackColor = true;
this.closeButton.Click += new System.EventHandler(this.closeButton_Click); this.closeButton.Click += new System.EventHandler(this.closeButton_Click);
// //
// CloseDlg // CloseDialog
// //
this.ClientSize = new System.Drawing.Size(494, 361); this.ClientSize = new System.Drawing.Size(494, 361);
this.Controls.Add(this.backgroundPanel); this.Controls.Add(this.backgroundPanel);
this.Controls.Add(this.bottomPanel); this.Controls.Add(this.bottomPanel);
this.Name = "CloseDlg"; this.Name = "CloseDialog";
this.Text = "Symphony Setup"; this.Text = "Symphony Setup";
this.Load += new System.EventHandler(this.dialog_Load); this.Load += new System.EventHandler(this.dialog_Load);
this.bottomPanel.ResumeLayout(false); this.bottomPanel.ResumeLayout(false);

View File

@ -2,14 +2,14 @@ using WixSharp;
namespace Symphony namespace Symphony
{ {
public partial class ExitDlg : WixSharp.UI.Forms.ManagedForm, IManagedDialog public partial class ExitDialog : WixSharp.UI.Forms.ManagedForm, IManagedDialog
{ {
public ExitDlg() public ExitDialog()
{ {
InitializeComponent(); InitializeComponent();
} }
private void ExitDlg_Load(object sender, System.EventArgs e) private void ExitDialog_Load(object sender, System.EventArgs e)
{ {
// Exit installation on completion (don't wait for user to confirm) // Exit installation on completion (don't wait for user to confirm)
// After installation exits, the app will be auto launched, but that is specified in Symphony.cs // After installation exits, the app will be auto launched, but that is specified in Symphony.cs

View File

@ -1,7 +1,7 @@
// This file is created and modified from the visual form designer in Visual Studio, so shouldn't need to be modified by hand // This file is created and modified from the visual form designer in Visual Studio, so shouldn't need to be modified by hand
namespace Symphony namespace Symphony
{ {
partial class ExitDlg partial class ExitDialog
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -30,10 +30,10 @@ namespace Symphony
private void InitializeComponent() private void InitializeComponent()
{ {
// //
// ExitDlg // ExitDialog
// //
this.Name = "ExitDlg"; this.Name = "ExitDialog";
this.Load += new System.EventHandler(this.ExitDlg_Load); this.Load += new System.EventHandler(this.ExitDialog_Load);
} }

View File

@ -3,9 +3,9 @@ using System.Drawing;
namespace Symphony namespace Symphony
{ {
public partial class MaintenanceDlg : WixSharp.UI.Forms.ManagedForm, IManagedDialog public partial class MaintenanceDialog : WixSharp.UI.Forms.ManagedForm, IManagedDialog
{ {
public MaintenanceDlg() public MaintenanceDialog()
{ {
InitializeComponent(); InitializeComponent();
} }

View File

@ -1,7 +1,7 @@
// This file is created and modified from the visual form designer in Visual Studio, so shouldn't need to be modified by hand // This file is created and modified from the visual form designer in Visual Studio, so shouldn't need to be modified by hand
namespace Symphony namespace Symphony
{ {
partial class MaintenanceDlg partial class MaintenanceDialog
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -128,12 +128,12 @@ namespace Symphony
this.labelHeader.TabIndex = 0; this.labelHeader.TabIndex = 0;
this.labelHeader.Text = "Welcome to the Symphony\r\nSetup Wizard"; this.labelHeader.Text = "Welcome to the Symphony\r\nSetup Wizard";
// //
// MaintenanceDlg // MaintenanceDialog
// //
this.ClientSize = new System.Drawing.Size(494, 361); this.ClientSize = new System.Drawing.Size(494, 361);
this.Controls.Add(this.backgroundPanel); this.Controls.Add(this.backgroundPanel);
this.Controls.Add(this.bottomPanel); this.Controls.Add(this.bottomPanel);
this.Name = "MaintenanceDlg"; this.Name = "MaintenanceDialog";
this.Text = "Symphony Setup"; this.Text = "Symphony Setup";
this.Load += new System.EventHandler(this.dialog_Load); this.Load += new System.EventHandler(this.dialog_Load);
this.bottomPanel.ResumeLayout(false); this.bottomPanel.ResumeLayout(false);

View File

@ -3,16 +3,16 @@
//css_ref System.Windows.Forms.dll; //css_ref System.Windows.Forms.dll;
//css_ref Wix_bin\SDK\Microsoft.Deployment.WindowsInstaller.dll; //css_ref Wix_bin\SDK\Microsoft.Deployment.WindowsInstaller.dll;
//css_ref WixSharp.UI.dll; //css_ref WixSharp.UI.dll;
//css_imp WelcomeDlg.cs; //css_imp WelcomeDialog.cs;
//css_imp WelcomeDlg.designer.cs; //css_imp WelcomeDialog.designer.cs;
//css_imp CloseDlg.cs; //css_imp CloseDialog.cs;
//css_imp CloseDlg.designer.cs; //css_imp CloseDialog.designer.cs;
//css_imp InstallDirDialog.cs //css_imp InstallDirDialog.cs
//css_imp InstallDirDialog.Designer.cs //css_imp InstallDirDialog.Designer.cs
//css_imp ExitDlg.cs; //css_imp ExitDialog.cs;
//css_imp ExitDlg.designer.cs; //css_imp ExitDialog.designer.cs;
//css_imp MaintenanceDlg.cs; //css_imp MaintenanceDialog.cs;
//css_imp MaintenanceDlg.designer.cs; //css_imp MaintenanceDialog.designer.cs;
//css_imp ProgressDialog.cs //css_imp ProgressDialog.cs
//css_imp ProgressDialog.Designer.cs //css_imp ProgressDialog.Designer.cs
//css_imp MaintenanceTypeDialog.cs; //css_imp MaintenanceTypeDialog.cs;
@ -210,15 +210,15 @@ class Script
// Define our own installation flow, using a mix of custom dialogs (defined in their own files) and built-in dialogs // Define our own installation flow, using a mix of custom dialogs (defined in their own files) and built-in dialogs
project.ManagedUI = new ManagedUI(); project.ManagedUI = new ManagedUI();
project.ManagedUI.InstallDialogs.Add<Symphony.WelcomeDlg>() project.ManagedUI.InstallDialogs.Add<Symphony.WelcomeDialog>()
.Add<Symphony.InstallDirDialog>() .Add<Symphony.InstallDirDialog>()
.Add<Symphony.ProgressDialog>() .Add<Symphony.ProgressDialog>()
.Add<Symphony.ExitDlg>() .Add<Symphony.ExitDialog>()
.Add<Symphony.CloseDlg>(); .Add<Symphony.CloseDialog>();
project.ManagedUI.ModifyDialogs.Add<Symphony.MaintenanceDlg>() project.ManagedUI.ModifyDialogs.Add<Symphony.MaintenanceDialog>()
.Add<Symphony.MaintenanceTypeDialog>() .Add<Symphony.MaintenanceTypeDialog>()
.Add<Symphony.ProgressDialog>() .Add<Symphony.ProgressDialog>()
.Add<Symphony.ExitDlg>(); .Add<Symphony.ExitDialog>();
project.Load += project_Load; project.Load += project_Load;
project.BeforeInstall += project_BeforeInstall; project.BeforeInstall += project_BeforeInstall;

View File

@ -3,7 +3,7 @@ using System.Drawing;
namespace Symphony namespace Symphony
{ {
public partial class WelcomeDlg : WixSharp.UI.Forms.ManagedForm, IManagedDialog public partial class WelcomeDialog : WixSharp.UI.Forms.ManagedForm, IManagedDialog
{ {
// Helper function to retrive the user name of the current user. The user name returned from // Helper function to retrive the user name of the current user. The user name returned from
// windows can be on the form DOMAIN\USER or USER@DOMAIN. This function strips away the domain // windows can be on the form DOMAIN\USER or USER@DOMAIN. This function strips away the domain
@ -15,7 +15,7 @@ namespace Symphony
return slashIndex > -1 ? name.Substring(slashIndex + 1) : name.Substring(0, name.IndexOf("@")); return slashIndex > -1 ? name.Substring(slashIndex + 1) : name.Substring(0, name.IndexOf("@"));
} }
public WelcomeDlg() public WelcomeDialog()
{ {
InitializeComponent(); InitializeComponent();
} }
@ -59,7 +59,7 @@ namespace Symphony
if (isRunning) if (isRunning)
{ {
// If it is running, continue to the "Close Symphony" screen // If it is running, continue to the "Close Symphony" screen
Shell.GoTo<Symphony.CloseDlg>(); Shell.GoTo<Symphony.CloseDialog>();
} }
else else
{ {

View File

@ -1,7 +1,7 @@
// This file is created and modified from the visual form designer in Visual Studio, so shouldn't need to be modified by hand // This file is created and modified from the visual form designer in Visual Studio, so shouldn't need to be modified by hand
namespace Symphony namespace Symphony
{ {
partial class WelcomeDlg partial class WelcomeDialog
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@ -177,12 +177,12 @@ namespace Symphony
this.labelHeader.TabIndex = 0; this.labelHeader.TabIndex = 0;
this.labelHeader.Text = "Thanks for downloading \r\nSymphony"; this.labelHeader.Text = "Thanks for downloading \r\nSymphony";
// //
// WelcomeDlg // WelcomeDialog
// //
this.ClientSize = new System.Drawing.Size(494, 361); this.ClientSize = new System.Drawing.Size(494, 361);
this.Controls.Add(this.backgroundPanel); this.Controls.Add(this.backgroundPanel);
this.Controls.Add(this.bottomPanel); this.Controls.Add(this.bottomPanel);
this.Name = "WelcomeDlg"; this.Name = "WelcomeDialog";
this.Text = "Symphony Setup"; this.Text = "Symphony Setup";
this.Load += new System.EventHandler(this.dialog_Load); this.Load += new System.EventHandler(this.dialog_Load);
this.bottomPanel.ResumeLayout(false); this.bottomPanel.ResumeLayout(false);