상속: System.Windows.Window
예제 #1
0
 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;
 }
예제 #2
0
 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();
 }