private void OnButtonCreateNewContentTextClick(object sender, RoutedEventArgs eventArgs) { var contentText = new VContentText(App.QuerySchedule, App.ServerConnections, -1); this.contents.Add(contentText); new ContentTextWindow(contentText).ShowDialog(); }
/// <summary> /// Initializes a new instance of the <see cref="ContentTextWindow"/> class. /// </summary> /// <param name="contentText">The dataContext of the <see cref="ContentTextWindow"/>.</param> public ContentTextWindow(VContentText contentText) { this.contentText = contentText; this.DataContext = this.contentText; this.InitializeComponent(); }