/// <summary> /// グループタブの表示名変更 /// </summary> /// <param name="ctx">対象のDataContext</param> private void RenameTabHeaderName(GroupTabContext ctx) { if (ctx == null) { return; } var dialog = new RenameDialogWindow(ctx.TabHeaderName.Value); if (dialog.ShowDialog() == true) { ctx.TabHeaderName.Value = dialog.ResponseText; } }
/// <summary> /// グループタブの初期化 /// </summary> private void initGroupTab() { var maxTabCount = 12; foreach (var i in Enumerable.Range(0, maxTabCount)) { var ctx = new GroupTabContext(); // グループタブの初期ヘッダ名(1始まり) ctx.TabHeaderName.Value = $"Group {i + 1}"; // Previewタブ用のダミーデータを追加 var previewDammyFile = new MLTFile(); previewDammyFile.Name = ""; previewDammyFile.Pages.Clear(); ctx.TabFileList.Add(previewDammyFile); this.GroupTabList.Add(ctx); } this.SelectedIndex.Value = 0; }