Slight SaveSystem change... read the description

WARNING: FROM THIS POINT ON ALL OLD SAVES ARE OUTDATED AND WILL NOT WORK kthx
This commit is contained in:
Alex-TIMEHACK 2017-11-04 11:09:57 +00:00
parent fd13d9d4f6
commit 4af08fc6e3
3 changed files with 34 additions and 11 deletions

View file

@ -190,6 +190,7 @@ public static void CheckFiles()
public static void CreateWindowsDirectory() public static void CreateWindowsDirectory()
{ {
SaveDirectoryInfo(ProfileWindowsDirectory, "Application Data", true, "Application Data", true);
SaveDirectoryInfo(ProfileWindowsDirectory, "System", true, "System", true); SaveDirectoryInfo(ProfileWindowsDirectory, "System", true, "System", true);
SaveDirectoryInfo(ProfileWindowsDirectory, "Config", true, "Config", true); SaveDirectoryInfo(ProfileWindowsDirectory, "Config", true, "Config", true);
SaveDirectoryInfo(ProfileWindowsDirectory, "Cursors", true, "Cursors", true); SaveDirectoryInfo(ProfileWindowsDirectory, "Cursors", true, "Cursors", true);
@ -337,6 +338,8 @@ public static void UpgradeFileSystem(string newOS)
// Add Address Book into existance! // Add Address Book into existance!
SaveDirectoryInfo(ProfileProgramsDirectory, "Outlook Express", false, "Outlook Express", true); SaveDirectoryInfo(ProfileProgramsDirectory, "Outlook Express", false, "Outlook Express", true);
SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Application Data"), "Microsoft", false, "Microsoft", true);
SaveDirectoryInfo(Path.Combine(ProfileWindowsDirectory, "Application Data", "Microsoft"), "Address Book", false, "Address Book", true);
CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Outlook Express"), "WAB.exe", "addressbook", 8, 512); CreateWindowsFile(Path.Combine(ProfileProgramsDirectory, "Outlook Express"), "WAB.exe", "addressbook", 8, 512);
// There is no "The Microsoft Network" folder! // There is no "The Microsoft Network" folder!

View file

@ -105,67 +105,67 @@ private void InitializeComponent()
// newContactToolStripMenuItem // newContactToolStripMenuItem
// //
this.newContactToolStripMenuItem.Name = "newContactToolStripMenuItem"; this.newContactToolStripMenuItem.Name = "newContactToolStripMenuItem";
this.newContactToolStripMenuItem.Size = new System.Drawing.Size(150, 22); this.newContactToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.newContactToolStripMenuItem.Text = "New contact..."; this.newContactToolStripMenuItem.Text = "New contact...";
this.newContactToolStripMenuItem.Click += new System.EventHandler(this.newContactToolStripMenuItem_Click); this.newContactToolStripMenuItem.Click += new System.EventHandler(this.newContactToolStripMenuItem_Click);
// //
// newFolderToolStripMenuItem // newFolderToolStripMenuItem
// //
this.newFolderToolStripMenuItem.Name = "newFolderToolStripMenuItem"; this.newFolderToolStripMenuItem.Name = "newFolderToolStripMenuItem";
this.newFolderToolStripMenuItem.Size = new System.Drawing.Size(150, 22); this.newFolderToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.newFolderToolStripMenuItem.Text = "New folder..."; this.newFolderToolStripMenuItem.Text = "New folder...";
this.newFolderToolStripMenuItem.Click += new System.EventHandler(this.newFolderToolStripMenuItem_Click); this.newFolderToolStripMenuItem.Click += new System.EventHandler(this.newFolderToolStripMenuItem_Click);
// //
// toolStripSeparator1 // toolStripSeparator1
// //
this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Name = "toolStripSeparator1";
this.toolStripSeparator1.Size = new System.Drawing.Size(147, 6); this.toolStripSeparator1.Size = new System.Drawing.Size(149, 6);
// //
// propertiesToolStripMenuItem // propertiesToolStripMenuItem
// //
this.propertiesToolStripMenuItem.Name = "propertiesToolStripMenuItem"; this.propertiesToolStripMenuItem.Name = "propertiesToolStripMenuItem";
this.propertiesToolStripMenuItem.Size = new System.Drawing.Size(150, 22); this.propertiesToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.propertiesToolStripMenuItem.Text = "Properties"; this.propertiesToolStripMenuItem.Text = "Properties";
this.propertiesToolStripMenuItem.Click += new System.EventHandler(this.propertiesToolStripMenuItem_Click); this.propertiesToolStripMenuItem.Click += new System.EventHandler(this.propertiesToolStripMenuItem_Click);
// //
// deleteToolStripMenuItem // deleteToolStripMenuItem
// //
this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem"; this.deleteToolStripMenuItem.Name = "deleteToolStripMenuItem";
this.deleteToolStripMenuItem.Size = new System.Drawing.Size(150, 22); this.deleteToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.deleteToolStripMenuItem.Text = "Delete"; this.deleteToolStripMenuItem.Text = "Delete";
this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click); this.deleteToolStripMenuItem.Click += new System.EventHandler(this.deleteToolStripMenuItem_Click);
// //
// toolStripSeparator2 // toolStripSeparator2
// //
this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Name = "toolStripSeparator2";
this.toolStripSeparator2.Size = new System.Drawing.Size(147, 6); this.toolStripSeparator2.Size = new System.Drawing.Size(149, 6);
// //
// importToolStripMenuItem // importToolStripMenuItem
// //
this.importToolStripMenuItem.Name = "importToolStripMenuItem"; this.importToolStripMenuItem.Name = "importToolStripMenuItem";
this.importToolStripMenuItem.Size = new System.Drawing.Size(150, 22); this.importToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.importToolStripMenuItem.Text = "Import..."; this.importToolStripMenuItem.Text = "Import...";
// //
// exportToolStripMenuItem // exportToolStripMenuItem
// //
this.exportToolStripMenuItem.Name = "exportToolStripMenuItem"; this.exportToolStripMenuItem.Name = "exportToolStripMenuItem";
this.exportToolStripMenuItem.Size = new System.Drawing.Size(150, 22); this.exportToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.exportToolStripMenuItem.Text = "Export..."; this.exportToolStripMenuItem.Text = "Export...";
// //
// toolStripSeparator3 // toolStripSeparator3
// //
this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Name = "toolStripSeparator3";
this.toolStripSeparator3.Size = new System.Drawing.Size(147, 6); this.toolStripSeparator3.Size = new System.Drawing.Size(149, 6);
// //
// toolStripSeparator4 // toolStripSeparator4
// //
this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Name = "toolStripSeparator4";
this.toolStripSeparator4.Size = new System.Drawing.Size(147, 6); this.toolStripSeparator4.Size = new System.Drawing.Size(149, 6);
// //
// exitToolStripMenuItem // exitToolStripMenuItem
// //
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem"; this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
this.exitToolStripMenuItem.Size = new System.Drawing.Size(150, 22); this.exitToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
this.exitToolStripMenuItem.Text = "Exit"; this.exitToolStripMenuItem.Text = "Exit";
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click); this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
// //
@ -350,6 +350,7 @@ private void InitializeComponent()
this.Controls.Add(this.topmenu); this.Controls.Add(this.topmenu);
this.Name = "WinClassicAddressBook"; this.Name = "WinClassicAddressBook";
this.Size = new System.Drawing.Size(666, 425); this.Size = new System.Drawing.Size(666, 425);
this.Load += new System.EventHandler(this.WinClassicAddressBook_Load);
this.topmenu.ResumeLayout(false); this.topmenu.ResumeLayout(false);
this.topmenu.PerformLayout(); this.topmenu.PerformLayout();
this.toolbar.ResumeLayout(false); this.toolbar.ResumeLayout(false);

View file

@ -299,6 +299,25 @@ private void aboutAddressBookToolStripMenuItem_Click(object sender, EventArgs e)
{ {
} }
private void WinClassicAddressBook_Load(object sender, EventArgs e)
{
((Form)this.TopLevelControl).FormClosed += (sender2, e2) =>
{
SaveData();
};
}
public void SaveData()
{
}
public void SaveDataAs()
{
}
} }
public class AddressBookContact public class AddressBookContact