public RecoverWindow(MainWindow mainW) { InitializeComponent(); this.mainW = mainW; DelYesNoQuestion = AskYesNoQuestion; DelCloseWindow = () => { this.Close(); return; }; DelSetRecProgressValues = SetRecProgressValues; RecoverEntryList = new List <recoverListEntry>(); RecoverEntryList.Add(new recoverListEntry() { Name = "Caricamento in corso...", lastMod = "" }); recoverListView.ItemsSource = RecoverEntryList; recInfos = new RecoverInfos(); RecoverViewModeList = new List <string> { "file da tutte le versioni" }; comboRecoverViewMode.ItemsSource = RecoverViewModeList; //seleziono prima stringa (file da tutte le versioni) comboRecoverViewMode.SelectedIndex = 0; versionToDisplay = -1; this.buttRecover.IsEnabled = false; }
int versionToDisplay; //-1 se display di file da tutte le versioni #endregion Fields #region Constructors public RecoverWindow(MainWindow mainW) { InitializeComponent(); this.mainW = mainW; DelYesNoQuestion = AskYesNoQuestion; DelCloseWindow = () => { this.Close(); return; }; DelSetRecProgressValues = SetRecProgressValues; RecoverEntryList = new List<recoverListEntry>(); RecoverEntryList.Add( new recoverListEntry() { Name = "Caricamento in corso...", lastMod = ""}); recoverListView.ItemsSource = RecoverEntryList; recInfos = new RecoverInfos(); RecoverViewModeList = new List<string> { "file da tutte le versioni" }; comboRecoverViewMode.ItemsSource = RecoverViewModeList; //seleziono prima stringa (file da tutte le versioni) comboRecoverViewMode.SelectedIndex = 0; versionToDisplay = -1; this.buttRecover.IsEnabled = false; }