public YEvents(NineManagement nm) { if (nbInstances > 0) { throw new Exception("YEvents can be instantiated more than once"); } _instance = this; LIO = LinkIOImp.Instance; Data = Data.Instance; Catalog = Catalog.Instance; NM = nm; }
public MainWindow() { InitializeComponent(); DataContext = new NineManagement(); Closing += (DataContext as NineManagement).MainClose; }