예제 #1
0
 /// <summary>
 /// 显示 加载布局 的对话窗口
 /// </summary>
 public static void ShowLoadLayoutWindow()
 {
     ShowDialogue(new List <FormStruct>
     {
         new FormStruct
         {
             name       = "布局:",
             type       = FormItemType.DropDown,
             parameters = FileFolder.GetAllFileName(AppController.GetInstence().appPath, "Frame", FrameController.GetInstence().frameName, "Layout")
         }
     }, AllAppMsg.LoadLayout);//显示对话框
 }
예제 #2
0
        /// <summary>
        /// 显示 保存布局 的对话窗口
        /// </summary>
        public static void ShowSaveLayoutWindow()
        {
            List <string> tmp = FileFolder.GetAllFileName(AppController.GetInstence().appPath, "Frame", FrameController.GetInstence().frameName, "Layout"); //在布局文件夹中查找所有布局

            tmp.Remove("Common");                                                                                                                           //移除 默认布局,默认布局禁止用户修改
            tmp.Remove("Last");                                                                                                                             //移除 上次退出时的布局,该布局禁止用户修改
            ShowDialogue(new List <FormStruct>
            {
                new FormStruct
                {
                    name       = "布局:",
                    type       = FormItemType.InputDropDown,
                    parameters = tmp,
                }
            }, AllAppMsg.SaveLayout);//显示对话框
        }