Permalink
Browse files

remove obsolete DefaultFile property from ChameleonCoderApp

  • Loading branch information...
1 parent e4ba0ae commit fa7e2c1d861bc2afb398899e343494ed8358233c @maul-esel committed Apr 25, 2012
@@ -27,12 +27,6 @@ public sealed class ChameleonCoderApp
internal static string AppPath { get { return Assembly.GetEntryAssembly().Location; } } // possibly make COM-visible // todo: will fail in COM
/// <summary>
- /// gets the initially loaded file
- /// </summary>
- [Obsolete]
- public IDataFile DefaultFile { get; set; }
-
- /// <summary>
/// the running System.Windows.Application instance
/// </summary>
[ComVisible(false), Obsolete("Attention: null if the instance is created via COM!")]
@@ -50,10 +50,6 @@ public IDataFile OpenFile(string path)
OpenFile(filePath);
}
-#if DEBUG
- App.DefaultFile = file; // TODO! HACK! (letting it be null causes exceptions)
-#endif
-
return file;
}
@@ -228,7 +228,7 @@ private void ResourceOpen(object sender, RoutedPropertyChangedEventArgs<Breadcru
break;
case Shared.CCTabPage.FileManagement:
- ChameleonCoderCommands.OpenFileManagementPage.Execute(App.DefaultFile, this);
+ ChameleonCoderCommands.OpenFileManagementPage.Execute(null, this);
break;
}
}
@@ -48,7 +48,7 @@ private void FinishDialog(object sender, EventArgs e)
DialogResult = true;
Close();
- IResource child = template.Create(ParentResource, name, app.DefaultFile);
+ IResource child = template.Create(ParentResource, name, ParentResource.File); // todo: fails if parent is null!
if (child != null)
app.ResourceMan.Add(child, ParentResource);
}

0 comments on commit fa7e2c1

Please sign in to comment.