public AshFile(MainWindow own, string f, EditorType etype) { et = etype; pwner = own; sourcefile = f; InitializeComponent(); loadFile(); tbEdit.TextChanged += delegate(object s, EventArgs e) { NeedsSave = true; }; NeedsSave = false; }
public MainWindow() { Instance = this; defaultTitle = ".NET Rain (beta 3)"; App.LocalDependencies = new Dictionary<string, string>(); InitializeComponent(); Title = defaultTitle; this.DataContext = this; filez.Items.Add(new TabItem() { Header = "Start Page", Content = new XapEditor.controls.Startpage(this), Style = (App.Current.Resources["AshTabItem"] as Style) }); LoadRecent("RecentFiles", "menu_recent"); LoadRecent("RecentXap", "menu_recentxap"); new AboutWindow("continue").ShowDialog(); }