private void PerformSaveModifiedAssets() { var pendingAssetList = GUILayer.PendingSaveList.Create(); using (var dialog = new ControlsLibrary.ModifiedAssetsDialog()) { dialog.BuildAssetList(pendingAssetList); if (dialog.ShowDialog() == DialogResult.OK) { pendingAssetList.Commit(); } } }
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); } } } }