private void RefreshButton_Click(object sender, EventArgs e) { RefreshBackups(); ScreenshotList.SelectedIndex = 0; ViewerMainForm.ApplyRGBAToPictureBox(ScreenshotBox, CaptureBackups[ScreenshotList.SelectedIndex]); Refresh(); }
private void ScreenshotList_SelectedIndexChanged(object sender, EventArgs e) { if (ScreenshotList.SelectedIndex >= 0) { ViewerMainForm.ApplyRGBAToPictureBox(ScreenshotBox, CaptureBackups[ScreenshotList.SelectedIndex]); Refresh(); } }