Skip to content
This repository
Browse code

remove obsolete DefaultFile property from ChameleonCoderApp

  • Loading branch information...
commit fa7e2c1d861bc2afb398899e343494ed8358233c 1 parent e4ba0ae
maul.esel authored
6 ChameleonCoder.Core/ChameleonCoderApp.cs
@@ -27,12 +27,6 @@ public sealed class ChameleonCoderApp
27 27 internal static string AppPath { get { return Assembly.GetEntryAssembly().Location; } } // possibly make COM-visible // todo: will fail in COM
28 28
29 29 /// <summary>
30   - /// gets the initially loaded file
31   - /// </summary>
32   - [Obsolete]
33   - public IDataFile DefaultFile { get; set; }
34   -
35   - /// <summary>
36 30 /// the running System.Windows.Application instance
37 31 /// </summary>
38 32 [ComVisible(false), Obsolete("Attention: null if the instance is created via COM!")]
4 ChameleonCoder.Core/Files/FileManager.cs
@@ -50,10 +50,6 @@ public IDataFile OpenFile(string path)
50 50 OpenFile(filePath);
51 51 }
52 52
53   -#if DEBUG
54   - App.DefaultFile = file; // TODO! HACK! (letting it be null causes exceptions)
55   -#endif
56   -
57 53 return file;
58 54 }
59 55
2  ChameleonCoder/MainWindow.xaml.cs
@@ -228,7 +228,7 @@ private void ResourceOpen(object sender, RoutedPropertyChangedEventArgs<Breadcru
228 228 break;
229 229
230 230 case Shared.CCTabPage.FileManagement:
231   - ChameleonCoderCommands.OpenFileManagementPage.Execute(App.DefaultFile, this);
  231 + ChameleonCoderCommands.OpenFileManagementPage.Execute(null, this);
232 232 break;
233 233 }
234 234 }
2  ChameleonCoder/NewResourceDialog.xaml.cs
@@ -48,7 +48,7 @@ private void FinishDialog(object sender, EventArgs e)
48 48 DialogResult = true;
49 49 Close();
50 50
51   - IResource child = template.Create(ParentResource, name, app.DefaultFile);
  51 + IResource child = template.Create(ParentResource, name, ParentResource.File); // todo: fails if parent is null!
52 52 if (child != null)
53 53 app.ResourceMan.Add(child, ParentResource);
54 54 }

0 comments on commit fa7e2c1

Please sign in to comment.
Something went wrong with that request. Please try again.