private void UPSOpenSimpleForm_Shown(object sender, EventArgs e) { using (InputFormRef.AutoPleaseWait pleaseWait = new InputFormRef.AutoPleaseWait(this)) { pleaseWait.DoEvents(R._("準備しています")); this.FindBackup = new FindBackup(); this.OrignalFilename.Text = SearchNotContainThisPatch(pleaseWait); } if (this.IsAutomatic && this.OrignalFilename.Text != "") { UninstallPatchButton.PerformClick(); } }
private void ToolDiffDebugSelectForm_Shown(object sender, EventArgs e) { using (InputFormRef.AutoPleaseWait wait = new InputFormRef.AutoPleaseWait()) { this.FindBackup = new FindBackup(); this.FindBackup.AppendOrignalROMToBackupList(); //末尾にバックアップROMを追加. this.PrefixTextBox.Text = this.FindBackup.Prefix; this.OrignalFilename.Text = this.FindBackup.OrignalFilename; BackupList.Items.Clear(); BackupList.BeginUpdate(); for (int i = 0; i < this.FindBackup.Files.Count; i++) { string filename = Path.GetFileName(this.FindBackup.Files[i].FilePath); string text = R._("{0} //{1}", filename, this.FindBackup.Files[i].Date.ToLocalTime()); BackupList.Items.Add(text); } BackupList.EndUpdate(); } }