And you can install and open FTP Client

This commit is contained in:
lempamo 2017-07-06 13:49:20 -04:00
parent 77f783fe2b
commit 88711b440b
5 changed files with 44 additions and 5 deletions

View file

@ -67,6 +67,10 @@ private void dlTimer_Tick(object sender, EventArgs e)
{
Windows95.desktopicons.Items.Add("Time Distorter Setup", imageIndex: 13);
}
if (appName.Text == "Downloading: FTP Client")
{
TitleScreen.frm95.desktopicons.Items.Add("FTP Client Setup", imageIndex: 11);
}
((Form)this.TopLevelControl).Close();
dlTimer.Stop();
}

View file

@ -130,6 +130,7 @@ private void InitializeComponent()
this.BitmapImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.MicrosoftDataLinkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.PropertiesToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
this.FTPClientToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.panel1.SuspendLayout();
this.taskbar.SuspendLayout();
this.clockPanel.SuspendLayout();
@ -265,7 +266,8 @@ private void InitializeComponent()
this.ErrorBlasterToolStripMenuItem,
this.SkindowsToolStripMenuItem,
this.WebChatToolStripMenuItem,
this.TimeDistorterToolStripMenuItem});
this.TimeDistorterToolStripMenuItem,
this.FTPClientToolStripMenuItem});
this.ProgramsToolStripMenuItem.Image = global::TimeHACK.Properties.Resources.WinClassicPrograms;
this.ProgramsToolStripMenuItem.ImageAlign = System.Drawing.ContentAlignment.MiddleLeft;
this.ProgramsToolStripMenuItem.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
@ -725,6 +727,17 @@ private void InitializeComponent()
this.TimeDistorterToolStripMenuItem.Text = "Time Distorter";
this.TimeDistorterToolStripMenuItem.Click += new System.EventHandler(this.TimeDistorterToolStripMenuItem_Click);
//
// FTPClientToolStripMenuItem
//
this.FTPClientToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
this.FTPClientToolStripMenuItem.BackgroundImage = global::TimeHACK.Properties.Resources.sliversilver;
this.FTPClientToolStripMenuItem.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
this.FTPClientToolStripMenuItem.Name = "FTPClientToolStripMenuItem";
this.FTPClientToolStripMenuItem.Size = new System.Drawing.Size(181, 28);
this.FTPClientToolStripMenuItem.Text = "FTP Client";
this.FTPClientToolStripMenuItem.Visible = false;
this.FTPClientToolStripMenuItem.Click += new System.EventHandler(this.FTPClientToolStripMenuItem_Click);
//
// DocumentsToolStripMenuItem
//
this.DocumentsToolStripMenuItem.BackColor = System.Drawing.Color.Silver;
@ -1267,5 +1280,6 @@ private void InitializeComponent()
private System.Windows.Forms.ToolStripMenuItem installerTestToolStripMenuItem;
private System.Windows.Forms.Panel taskbarItems;
private System.Windows.Forms.ToolStripMenuItem storyTest1ToolStripMenuItem;
private System.Windows.Forms.ToolStripMenuItem FTPClientToolStripMenuItem;
}
}

View file

@ -285,6 +285,15 @@ private void desktopicons_Click(object sender, EventArgs e)
app.BringToFront();
startmenu.Hide();
}
else if (objListViewItem.Text == "FTP Client Setup")
{
Win95Installer inst = new Win95Installer("FTP Client");
inst.InstallCompleted += (sendr, args) => WebChatToolStripMenuItem.Visible = true;
WinClassic app = wm.StartWin95(inst, "FTP Client Setup", null, true, true);
AddTaskBarItem(app, app.Tag.ToString(), "FTP Client Setup", null);
app.BringToFront();
startmenu.Hide();
}
}
}
}
@ -438,6 +447,14 @@ private void TimeDistorterToolStripMenuItem_Click(object sender, EventArgs e)
app.BringToFront();
startmenu.Hide();
}
private void FTPClientToolStripMenuItem_Click(object sender, EventArgs e)
{
WinClassic app = wm.StartWin95(new WinClassicFTPClient(), "FTP Client", null, true, true);
AddTaskBarItem(app, app.Tag.ToString(), "FTP Client", null);
app.BringToFront();
startmenu.Hide();
}
}
public class MyRenderer : ToolStripProfessionalRenderer
{

View file

@ -389,7 +389,7 @@
AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w
LCBDdWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWI3N2E1YzU2MTkzNGUwODkFAQAAACZTeXN0
ZW0uV2luZG93cy5Gb3Jtcy5JbWFnZUxpc3RTdHJlYW1lcgEAAAAERGF0YQcCAgAAAAkDAAAADwMAAADq
ggAAAk1TRnQBSQFMAgEBDAEAAYABAQGAAQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA
ggAAAk1TRnQBSQFMAgEBDAEAAYgBAQGIAQEBIAEAASABAAT/ASEBAAj/AUIBTQE2BwABNgMAASgDAAGA
AwABgAMAAQEBAAEgBwABAf8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A
/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8A
/wD/AP8A/wD/AP8A/wD/AP8A/wD/AP8AXAAB/wMAAf8DAAH/AwAB/wMAAf8DAAH/AwAB/x8AAf8DAAH/

View file

@ -31,17 +31,21 @@ public Win95Installer(string progName)
label3.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
label4.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
label5.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
label6.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
label7.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
checkBox1.Font = new Font(TitleScreen.pfc.Families[0], 16F, FontStyle.Regular, GraphicsUnit.Point, ((byte)(0)));
cancelbutton1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
nextbutton1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
backbutton1.Paint += (sender, args) => Engine.Paintbrush.PaintClassicBorders(sender, args, 2);
prog = progName;
}
private void Win95Installer_Load(object sender, EventArgs e)
{
label1.Text.Replace("GenericName", installname.Text);
label3.Text.Replace("GenericName", installname.Text);
label4.Text.Replace("GenericName", installname.Text);
label1.Text = label1.Text.Replace("GenericName", prog);
label3.Text = label3.Text.Replace("GenericName", prog);
label4.Text = label4.Text.Replace("GenericName", prog);
label7.Text = label7.Text.Replace("GenericName", prog);
installbar.Tick += Installbar_Tick;
}