first commit

This commit is contained in:
2021-12-14 18:39:55 +08:00
commit c0aaf7a897
43 changed files with 1956 additions and 0 deletions

51
mainProgram/Form1.cs Normal file
View 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)
{
}
}
}