public void Execute()
        {
            if (mPackageVersion.Readme.content.Length < 2)
            {
                DialogUtils.ShowErrorMsg("请输入版本修改说明");
                return;
            }

            if (!IsVersionValide(mPackageVersion.Version))
            {
                DialogUtils.ShowErrorMsg("请输入正确的版本号 格式:vX.Y.Z");
                return;
            }

            mPackageVersion.DocUrl = "http://lianxiegame.com";

            mPackageVersion.Readme = new ReleaseItem(mPackageVersion.Version, mPackageVersion.Readme.content,
                                                     User.Username.Value,
                                                     DateTime.Now);

            mPackageVersion.Save();

            AssetDatabase.Refresh();

            RenderEndCommandExecuter.PushCommand(() =>
            {
                PublishPackage(mPackageVersion, false);
            });
        }
        public void Execute()
        {
            Server.GetAllRemotePackageInfo(list =>
            {
                RenderEndCommandExecuter.PushCommand(() =>
                {
                    Model.PackageDatas = PackageInfosRequestCache.Get().PackageDatas;

                    TypeEventSystem.Send(new PackageManagerViewUpdate()
                    {
                        PackageDatas = Model.SelectedPackageType,
                        VersionCheck = Model.VersionCheck,
                    });
                });
            });


            Server.GetAllRemotePackageInfoV5((list, categories) =>
            {
                RenderEndCommandExecuter.PushCommand(() =>
                {
                    Model.PackageDatas = PackageInfosRequestCache.Get().PackageDatas;

                    TypeEventSystem.Send(new PackageManagerViewUpdate()
                    {
                        PackageDatas = Model.SelectedPackageType,
                        VersionCheck = Model.VersionCheck,
                    });
                });
            });
        }
        public override void OnGUI()
        {
            base.OnGUI();

            RootLayout.DrawGUI();

            RenderEndCommandExecuter.ExecuteCommand();
        }
        public override void OnGUI()
        {
            base.OnGUI();

            GUILayout.BeginHorizontal();
            GUILayout.FlexibleSpace();
            GUILayout.Label(DateTime.Now.ToLongTimeString(), Styles.selectionRect);

            GUILayout.EndHorizontal();

            var r = GUILayoutUtility.GetLastRect();

            mSplitView.OnGUI(new Rect(new Vector2(0, r.yMax),
                                      new Vector2(position.width, position.height - r.height)));

            RenderEndCommandExecuter.ExecuteCommand();
        }
        public void Execute()
        {
            var path = Application.dataPath.Replace("Assets", mPackageRepository.installPath);

            if (Directory.Exists(path))
            {
                Directory.Delete(path, true);
            }

            RenderEndCommandExecuter.PushCommand(() =>
            {
                AssetDatabase.Refresh();

                PackageApplication.Container.Resolve <PackageKitWindow>().Close();

                InstallPackage.Do(mPackageRepository);
            });
        }