Exemplo n.º 1
0
        private void OnButtonCreateNewContentTextClick(object sender, RoutedEventArgs eventArgs)
        {
            var contentText = new VContentText(App.QuerySchedule, App.ServerConnections, -1);

            this.contents.Add(contentText);
            new ContentTextWindow(contentText).ShowDialog();
        }
Exemplo n.º 2
0
 /// <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();
 }