public void CreateNewWindow(ChannelCreationViewModel channelViewModel) { var window = new ChannelCreationWindow { DataContext = channelViewModel }; window.ShowDialog(); }
public ChannelCreation_ViewModel(ChannelCreationWindow main, ConversationsChannel_ViewModel convm) { this.ConvVM = convm; this.main = main; channelName = ""; errorText = ""; created = ""; Close = new GeneralCommands <object>(CloseBox, CanClose); CreateChannel = new GeneralCommands <object>(CreateTheChannel, CanCreate); }
public void CreateChannel(object o) { ChannelCreationWindow popup = new ChannelCreationWindow(this); popup.ShowDialog(); }