private void FormButton_FormClosing(object sender, FormClosingEventArgs e) { watchDog = null; lastRequestBarcode = null; manuelModeTimer = null; manuelBarcodePostTimer = null; manuelBarcodeCleanTimer = null; }
private void InitializeWatchDog() { watchDog = new WatchDogBL(Settings.Default.SourceFolder, Settings.Default.DestinationFolder, Settings.Default.FileExtension); watchDog.ParseFileEvent += WatchDog_ParseFileEvent; if (!Settings.Default.AppIsEnabled) { menuItemAppStatus.Text = "Uygulamayı AKTİF yap"; new FormNotification("Uygulama pasif modda başladı", NotificationType.Info).ShowDialog();; } else { menuItemAppStatus.Text = "Uygulamayı pasif yap"; // new FormNotification().ShowAlert("FarmaKode uygulaması başladı", NotificationType.Info); watchDog.Start(); } }