private void BtnOk_Click(object sender, RoutedEventArgs e) { Misc.adultPrice = int.Parse(txtAdultPrice.Text); Misc.childrenPrice = int.Parse(txtChildrenPrice.Text); Misc.taseTicketPrice = int.Parse(txtTasteTicketPrice.Text); Misc.rafflePrice = int.Parse(txtRafflePrice.Text); Misc.savePrices(); MessageBox.Show("Kész!"); }
private void mniPdfFolder(object sender, RoutedEventArgs e) { using (var dialog = new System.Windows.Forms.FolderBrowserDialog()) { System.Windows.Forms.DialogResult result = dialog.ShowDialog(); Misc.PDFpath = dialog.SelectedPath; Misc.savePrices(); } }