1、添加2个自定义控件:chartTC、TreeViewTc; 2、修复了一些bug,完善了功能;3、更新了gitignore,将bin等目录忽略;
This commit is contained in:
@ -19,32 +19,44 @@ namespace mainProgram
|
||||
|
||||
private void SelectProjectPathBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
FolderBrowserDialog dialog = new FolderBrowserDialog();
|
||||
dialog.Description = "请选择工程文件夹";
|
||||
//FolderBrowserDialog dialog = new FolderBrowserDialog();
|
||||
//dialog.Description = "请选择工程文件";
|
||||
//if (dialog.ShowDialog() == DialogResult.OK)
|
||||
//{
|
||||
// if (string.IsNullOrEmpty(dialog.SelectedPath))
|
||||
// {
|
||||
// MessageBox.Show(this, "文件夹路径不能为空", "提示");
|
||||
// return;
|
||||
// }
|
||||
// string savePath = dialog.SelectedPath;
|
||||
// ProjectPathTextBox.Text = savePath;
|
||||
//}
|
||||
|
||||
|
||||
|
||||
OpenFileDialog dialog = new OpenFileDialog();
|
||||
//dialog.CheckFileExists = false; //设置不弹出警告
|
||||
//dialog.Multiselect = true;//该值确定是否可以选择多个文件
|
||||
dialog.Title = "请选择工程文件";
|
||||
dialog.Filter = "工程文件(*.EasySif)|*.EasySif";
|
||||
if (dialog.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
if (string.IsNullOrEmpty(dialog.SelectedPath))
|
||||
{
|
||||
MessageBox.Show(this, "文件夹路径不能为空", "提示");
|
||||
return;
|
||||
}
|
||||
string savePath = dialog.SelectedPath;
|
||||
ProjectPathTextBox.Text = savePath;
|
||||
|
||||
string filePath = dialog.FileName;
|
||||
ProjectPathTextBox.Text = filePath;
|
||||
}
|
||||
}
|
||||
|
||||
public event transferProjectManagerDelegate TransferEvent;//申明事件
|
||||
private void OpenProjectPathBtn_Click(object sender, EventArgs e)
|
||||
{
|
||||
string projectPath = ProjectPathTextBox.Text;
|
||||
if (projectPath != null && projectPath.Length == 0)
|
||||
string projectFile = ProjectPathTextBox.Text;
|
||||
if (projectFile != null && projectFile.Length == 0)
|
||||
{
|
||||
MessageBox.Show(this, "工程路径不能为空", "提示");
|
||||
return;
|
||||
}
|
||||
|
||||
ProjectManager projectManager = new ProjectManager(projectPath);
|
||||
ProjectManager projectManager = new ProjectManager(projectFile);
|
||||
|
||||
if(projectManager.OpenProject())
|
||||
{
|
||||
|
Reference in New Issue
Block a user