public NewBotUI(Window owner = null) { InitializeComponent(); Owner = owner; Icon = owner?.Icon; BotName = "New Bot"; AvailableBots = new ListCollectionView(IBot.AvailableBots().ToList()); AvailableBots.CurrentChanged += delegate { NotifyValidate(); }; Accept = Command.Create(this, AcceptInternal); DataContext = this; }