Example #1
0
        private void ReturnButton_Click(object sender, RoutedEventArgs e)
        {
            TranslateSearch Translate = new TranslateSearch();

            Translate.Show();
            this.Close();
        }
Example #2
0
        private void DictionaryButton_Click(object sender, RoutedEventArgs e)
        {
            //SqlConnection polaczenie = new SqlConnection("Data Source=.\SQLEXPRESS; Integrated Security=True;");
            //polaczenie.Open();
            //SqlCommand komenda = new SqlCommand(string.Format("if not exists(select * from sys.databases where name = '{0}') create database {0}", DictionaryButton), polaczenie);
            //komenda.ExecuteNonQuery();
            //polaczenie.Close();
            //polaczenie.ConnectionString = string.Format("Data Source =.;Database='{0}';Integrated Security = True; ", DictionaryButton);
            //polaczenie.Open();
            //komenda.CommandText = "create table slowa(Id int not null identity(1,1), Polski varchar(50), Norweski varchar(50), Angielski varchar(50)";
            //komenda.ExecuteNonQuery();
            //polaczenie.Close();
            TranslateSearch Translate = new TranslateSearch();

            Translate.Show();
            this.Close();
        }