private void Button_Click_11(object sender, RoutedEventArgs e) { using (LogoCreator ic = new LogoCreator()) { try { ic.Owner = (FindResource("mvm") as MainViewModel).mw; } catch (Exception) { } ic.ShowDialog(); } }
private void Set_LogoTex(object sender, RoutedEventArgs e) { string path = System.IO.Path.Combine(Directory.GetCurrentDirectory(), "bin", "createdIMG", "bootLogoTex.png"); using (LogoCreator ic = new LogoCreator()) { try { ic.Owner = (FindResource("mvm") as MainViewModel).mw; } catch (Exception) { } ic.ShowDialog(); } if (File.Exists(path) && mvm.CheckTime(new FileInfo(path).CreationTime)) { mvm.GameConfiguration.TGALog.ImgPath = path; mvm.GameConfiguration.TGALog.extension = new FileInfo(path).Extension; this.log.Text = path; logIMG.Visibility = Visibility.Visible; } }