Added the add new event

This commit is contained in:
Thorsten Sommer 2022-06-07 20:46:21 +02:00
parent bf9dec6248
commit 915924c291
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108
2 changed files with 6 additions and 4 deletions

View File

@ -109,6 +109,7 @@
this.buttonNew.Text = "New Project";
this.buttonNew.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText;
this.buttonNew.UseVisualStyleBackColor = true;
this.buttonNew.Click += new System.EventHandler(this.buttonNew_Click);
//
// buttonOpen
//
@ -130,13 +131,13 @@
this.contextMenuRecentProjects.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.toolStripMenuItem1});
this.contextMenuRecentProjects.Name = "contextMenuRecentProjects";
this.contextMenuRecentProjects.Size = new System.Drawing.Size(181, 48);
this.contextMenuRecentProjects.Size = new System.Drawing.Size(73, 26);
this.contextMenuRecentProjects.Closing += new System.Windows.Forms.ToolStripDropDownClosingEventHandler(this.contextMenuRecentProjects_Closing);
//
// toolStripMenuItem1
//
this.toolStripMenuItem1.Name = "toolStripMenuItem1";
this.toolStripMenuItem1.Size = new System.Drawing.Size(180, 22);
this.toolStripMenuItem1.Size = new System.Drawing.Size(72, 22);
//
// LoaderStart
//

View File

@ -69,14 +69,15 @@ public partial class LoaderStart : UserControl
this.areRecentProjectsVisible = true;
}
private void browseForProject()
private void buttonNew_Click(object sender, EventArgs e)
{
// TODO: Browse for project
// TODO: Browse for new project's location
// TODO: Apply new project's path
LoaderStart.UpdateRecentProjectsWithPruning(string.Empty);
// TODO: Open the project
}
// TODO: Handle cancel event
// TODO: Apply chosen project's path