예제 #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();
         }
     }
 }