using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Documents; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Imaging; using System.Windows.Shapes; namespace RomeOnlinePartner.Views { /// /// Interaction logic for Main.xaml /// public partial class Main : Window { public Main() { InitializeComponent(); } private void Window_Loaded(object sender, RoutedEventArgs e) { Application.Current.MainWindow = this; } private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { e.Cancel = true; this.Hide(); //Utils.HTTPServer.tokenSource.Cancel(); //Application.Current.Shutdown(); } private void TextBox_TextChanged(object sender, TextChangedEventArgs e) { Properties.Settings.Default.QuickBooksFilePath = ((System.Windows.Controls.TextBox)sender).Text; Properties.Settings.Default.Save(); } private void PaintScalePath_TextChanged(object sender, TextChangedEventArgs e) { Properties.Settings.Default.PaintScalePath = ((System.Windows.Controls.TextBox)sender).Text; Properties.Settings.Default.Save(); } private void PaintScaleImportPath_TextChanged(object sender, TextChangedEventArgs e) { Properties.Settings.Default.PaintScaleImportPath = ((System.Windows.Controls.TextBox)sender).Text; Properties.Settings.Default.Save(); } private void PaintScaleImportTimer_TextChanged(object sender, TextChangedEventArgs e) { Properties.Settings.Default.PaintScaleImportTimer = ((System.Windows.Controls.TextBox)sender).Text; Properties.Settings.Default.Save(); Utils.PPGMixData.StartMixTimer(); } private void ArmsExportPath_TextChanged(object sender, TextChangedEventArgs e) { Properties.Settings.Default.ArmsExportPath = ((System.Windows.Controls.TextBox)sender).Text; Properties.Settings.Default.Save(); } private void EmsExportPath_TextChanged(object sender, TextChangedEventArgs e) { Properties.Settings.Default.EmsExportPath = ((System.Windows.Controls.TextBox)sender).Text; Properties.Settings.Default.Save(); } private void PpcExportPath_TextChanged(object sender, TextChangedEventArgs e) { Properties.Settings.Default.PpcExportPath = ((System.Windows.Controls.TextBox)sender).Text; Properties.Settings.Default.Save(); } } }