first commit
This commit is contained in:
51
mainProgram/Form1.cs
Normal file
51
mainProgram/Form1.cs
Normal file
@ -0,0 +1,51 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace mainProgram
|
||||
{
|
||||
public partial class main : Form
|
||||
{
|
||||
public main()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private ProjectManager mProjectManager;//保存打开的/新建的工程对象
|
||||
|
||||
public void RecieveProjectManager(ProjectManager value)
|
||||
{
|
||||
mProjectManager = value;
|
||||
|
||||
Console.WriteLine("工程文件目录为:" + mProjectManager.ProjectPath + "---------------------");
|
||||
}
|
||||
|
||||
private void newToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
NewProjectWindow w = new NewProjectWindow();
|
||||
w.TransferEvent += RecieveProjectManager;
|
||||
|
||||
//w.Show();//不阻塞
|
||||
w.ShowDialog();//阻塞
|
||||
}
|
||||
|
||||
private void OpenProjectToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenProjectWindow w = new OpenProjectWindow();
|
||||
|
||||
//w.Show();//不阻塞
|
||||
w.ShowDialog();//阻塞
|
||||
}
|
||||
|
||||
private void RadToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user