Added the add new event

This commit is contained in:
tsommer committed 2022-06-07 20:46:21 +02:00
1 parent bf9dec6248
commit 915924c291
2 files changed
+6 -4

No files matched your search

@@ -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
//
@@ -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