Example #1
0
        private bool chekConnection()
        {
            using (MySqlConnection cn = new MySqlConnection())
            {
                cn.ConnectionString = App.GetConnection();
                try
                {
                    cn.Open();
                }
                catch (MySqlException ex)
                {
                    Setting_DB dbSet = new Setting_DB();
                    dbSet.ShowDialog();
                    //MessageBox.Show("Bitte führen Sie die Anwendung erneut");
                    if (cancel)
                    {
                        Close();
                        return(true);
                    }
                    else
                    {
                        return(false);
                    }
                }

                isRun = true;

                return(true);
            }
        }
Example #2
0
        private void Option_Click(object sender, RoutedEventArgs e)
        {
            Setting_DB DbSet = new Setting_DB();

            DbSet.ShowDialog();
            readAllTableService();
        }