Esempio n. 1
0
    public static void CheckImportModules()
    {
        string filePath = OpenFileUtil.OpenFile("json 文件(*.json)\0*.json");

        if (string.IsNullOrEmpty(filePath))
        {
            return;
        }
        if (GlobalData.Modules.Count == 0)
        {
            ImportModules(filePath);
            return;
        }

        DialogManager.ShowQuestion("导入时会先将所有 modules 都删除, 是否继续导入?",
                                   () => ImportModules(filePath),
                                   null,
                                   "确定",
                                   "取消",
                                   KeyCode.Return,
                                   KeyCode.Escape,
                                   0,
                                   165);
    }
Esempio n. 2
0
        private void btnOpenFA_Click(object sender, EventArgs e)
        {
            OpenFileUtil ofu = new OpenFileUtil();

            txtFAPath.Text = ofu.OpenFile();
        }