Implemented database backups and restores into the AdvertisingProfitControlData DLL and added a form, DatabaseRecovery, to manage the backups and restores. Updated the installer to include the data DLL file into the install bundle.
This commit is contained in:
+17
-7
@@ -37,6 +37,7 @@
|
||||
this.addRecordsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.modifyRecordMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.reportsMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.generateReportMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.toolsMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.clearRecordToolsMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@@ -111,7 +112,7 @@
|
||||
this.grossProfitEstimatedWeeklyDeptmartmentExpenseLabel = new System.Windows.Forms.Label();
|
||||
this.perfectGrossProfitLabel = new System.Windows.Forms.Label();
|
||||
this.grossProfitDollarGrossProfitLabel = new System.Windows.Forms.Label();
|
||||
this.generateReportMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.backupRestoreToolsMainMenu = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.mainMenu.SuspendLayout();
|
||||
this.mainTableLayoutPanel.SuspendLayout();
|
||||
this.commentMainTableLayoutPanel.SuspendLayout();
|
||||
@@ -176,7 +177,7 @@
|
||||
// exitFileMainMenu
|
||||
//
|
||||
this.exitFileMainMenu.Name = "exitFileMainMenu";
|
||||
this.exitFileMainMenu.Size = new System.Drawing.Size(138, 34);
|
||||
this.exitFileMainMenu.Size = new System.Drawing.Size(240, 34);
|
||||
this.exitFileMainMenu.Text = "E&xit";
|
||||
this.exitFileMainMenu.Click += new System.EventHandler(this.ExitProgram);
|
||||
//
|
||||
@@ -212,6 +213,13 @@
|
||||
this.reportsMainMenu.Size = new System.Drawing.Size(95, 34);
|
||||
this.reportsMainMenu.Text = "R&eports";
|
||||
//
|
||||
// generateReportMenuItem
|
||||
//
|
||||
this.generateReportMenuItem.Name = "generateReportMenuItem";
|
||||
this.generateReportMenuItem.Size = new System.Drawing.Size(256, 34);
|
||||
this.generateReportMenuItem.Text = "&Generate Report";
|
||||
this.generateReportMenuItem.Click += new System.EventHandler(this.GenerateReportMenuItemClick);
|
||||
//
|
||||
// settingsToolStripMenuItem
|
||||
//
|
||||
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
|
||||
@@ -222,6 +230,7 @@
|
||||
// toolsMainMenu
|
||||
//
|
||||
this.toolsMainMenu.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.backupRestoreToolsMainMenu,
|
||||
this.clearRecordToolsMainMenu,
|
||||
this.manageItemsToolsMainMenu,
|
||||
this.manageSuppliersToolsMainMenu,
|
||||
@@ -1008,12 +1017,12 @@
|
||||
this.grossProfitDollarGrossProfitLabel.TabIndex = 2;
|
||||
this.grossProfitDollarGrossProfitLabel.Text = "Dollar Gross Profit: ";
|
||||
//
|
||||
// generateReportMenuItem
|
||||
// backupRestoreToolsMainMenu
|
||||
//
|
||||
this.generateReportMenuItem.Name = "generateReportMenuItem";
|
||||
this.generateReportMenuItem.Size = new System.Drawing.Size(256, 34);
|
||||
this.generateReportMenuItem.Text = "&Generate Report";
|
||||
this.generateReportMenuItem.Click += new System.EventHandler(this.GenerateReportMenuItemClick);
|
||||
this.backupRestoreToolsMainMenu.Name = "backupRestoreToolsMainMenu";
|
||||
this.backupRestoreToolsMainMenu.Size = new System.Drawing.Size(282, 34);
|
||||
this.backupRestoreToolsMainMenu.Text = "&Database Backup";
|
||||
this.backupRestoreToolsMainMenu.Click += new System.EventHandler(this.DisplayDatabaseRecoveryFormOnBackupRestoreClick);
|
||||
//
|
||||
// FrmMain
|
||||
//
|
||||
@@ -1146,6 +1155,7 @@
|
||||
private System.Windows.Forms.ToolStripMenuItem testToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem generateReportMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem backupRestoreToolsMainMenu;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user