public DetailWindow(Files files) { SetValue(FilesProperty, files); DataContext = this; Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag); InitializeComponent(); }
public MainWindow(Files files, BackupProgress backupProgress, BackupEngine backupEngine) { SetValue(FilesProperty, files); SetValue(BackupProgressProperty, backupProgress); this.backupEngine = backupEngine; InitializeComponent(); DataContext = this; Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag); BackupProgress.PropertyChanged += BackupProgressChanged; }