예제 #1
0
        public static View.ProjectManager projectmanager = new View.ProjectManager();               // 项目管理配置

        public Form1()
        {
            InitializeComponent();
            // 初始化
            projectmanager.TopLevel = false;

            // 最开始显示的是工程管理界面
            Show_View(projectmanager);

            // 新建数据库
            master_sql_builder.Create_Database("MyMES");

            // 设置比例
            ViewCaoZuo.Max_Form(this);
            ViewCaoZuo.Object_Position(0, 0, 0.1, 1, treeView_select, this.Controls);
            ViewCaoZuo.Object_Position(0.12, 0.08, 0.8, 0.9, panel_view, this.Controls);

            string[] a = FileCaozuo.Read_All_Line(Project_Config_File);
            if (a != null)
            {
                // 当配置文件不为空时
            }
        }