public override void BecomeMainWindow() { context.Attach(this); base.BecomeMainWindow(); }
protected override void OnBecomeMainWindow(object sender, EventArgs args) { context.Attach(this); }