public MainWindow() { InitializeComponent(); // コンテキストの設定 context = new RenamerContext(); FileListBox.DataContext = context; FormatText.DataContext = context; ReplaceSearchText.DataContext = context; ReplacedText.DataContext = context; SerialNumberText.DataContext = context; DigitNumberText.DataContext = context; UndoButton.DataContext = context; // 基本機能の作成 core = new RenamerCore(context); }
public RenamerCore(RenamerContext context) { this.context = context; }