示例#1
0
        private void PerformSaveModifiedAssets()
        {
            var pendingAssetList = GUILayer.PendingSaveList.Create();

            using (var dialog = new ControlsLibrary.ModifiedAssetsDialog())
            {
                dialog.BuildAssetList(pendingAssetList);
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    pendingAssetList.Commit();
                }
            }
        }
示例#2
0
        private void PerformSaveModifiedAssets()
        {
            var pendingAssetList = GUILayer.PendingSaveList.Create();

            using (var dialog = new ControlsLibrary.ModifiedAssetsDialog())
            {
                dialog.BuildAssetList(pendingAssetList);
                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    var cmtResult = pendingAssetList.Commit();

                    // if we got some error messages during the commit; display them here...
                    if (!String.IsNullOrEmpty(cmtResult.ErrorMessages))
                    {
                        ControlsLibrary.BasicControls.TextWindow.ShowModal(cmtResult.ErrorMessages);
                    }
                }
            }
        }
示例#3
0
 private void PerformSaveModifiedAssets()
 {
     var pendingAssetList = GUILayer.PendingSaveList.Create();
     using (var dialog = new ControlsLibrary.ModifiedAssetsDialog())
     {
         dialog.BuildAssetList(pendingAssetList);
         if (dialog.ShowDialog() == DialogResult.OK)
         {
             pendingAssetList.Commit();
         }
     }
 }