Esempio n. 1
0
        private void btnClose_Click(object sender, RoutedEventArgs e)
        {
            DialogConfirm closeDialog = new DialogConfirm("Travox Sentinel", "You want to turn off the system?", "Not, now.", "Shutdown.");

            closeDialog.HandlerButton1 = (object s2, RoutedEventArgs e2) => {
                closeDialog.Hide();
            };

            closeDialog.HandlerButton2 = (object s2, RoutedEventArgs e2) => {
                App.CrawlerRunning = false;
                closeDialog.Hide();
                ContextHide();
            };

            closeDialog.ShowDialog();
        }
        private void btnClose_Click(object sender, RoutedEventArgs e)
        {
            DialogConfirm closeDialog = new DialogConfirm("Travox Sentinel", "You want to turn off the system?", "Not, now.", "Shutdown.");

            closeDialog.HandlerButton1 = (object s2, RoutedEventArgs e2) => {
                closeDialog.Hide();
            };

            closeDialog.HandlerButton2 = (object s2, RoutedEventArgs e2) => {
                App.CrawlerRunning = false;
                closeDialog.Hide();
                ContextHide();
            };

            closeDialog.ShowDialog();
        }