private void Item_Repeating_Click(object sender, RoutedEventArgs e) { if (data.pages.Count > 0) { Window_Repeating window_Repeating = new Window_Repeating(data); window_Repeating.Owner = this; window_Repeating.ShowDialog(); } }
private void Button_MakeRepeating_Click(object sender, RoutedEventArgs e) { if (data.pages.Count > 0) { Window_Repeating window_Repeating = new Window_Repeating(data, cont); window_Repeating.Owner = Window.GetWindow(this); cont.Content = cont.contentCreator.Create(data); window_Repeating.ShowDialog(); } }