private void Set_DrcTex(object sender, RoutedEventArgs e) { string path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "createdIMG", "bootDrcTex.png"); using (ImageCreator ic = new ImageCreator(GameConsoles.GCN, "bootDrcTex")) { try { ic.Owner = mvm.mw; } catch (Exception) { } ic.ShowDialog(); } if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime)) { mvm.GameConfiguration.TGADrc.ImgPath = path; mvm.GameConfiguration.TGADrc.extension = new FileInfo(path).Extension; drc.Text = path; drcIMG.Visibility = Visibility.Visible; } }