public MergedNameSettingWindow(FileViewWindow fileViewWindow) { InitializeComponent(); this.fileViewWindow = fileViewWindow; TextBox.Text = ((FileDataObject)fileViewWindow.fileListView.SelectedItems[0]).Name; OKButton.AddHandler(System.Windows.Controls.Primitives.ButtonBase.ClickEvent, new RoutedEventHandler(okButton_OnClicked)); }
/// <summary> /// リストビューにアイテムを追加する /// </summary> /// <param name="data"></param> private void AddFileListWindow(AppDataObject data) { FileViewWindow fileListWindow = new FileViewWindow(data); mainWindow.FileViewWindows.Add(fileListWindow); }