private void saveBtn_Click(object sender, RoutedEventArgs e) { //save val to db Media_DB_Query query = new Media_DB_Query(); query.saveMedia(ApplicationState.GetValue <string>("user_id"), "Audio", ApplicationState.GetValue <string>("audio_file_name")); MessageBox.Show("Audio successfully saved"); reloadWindow(); }
private void saveBtn_Click(object sender, RoutedEventArgs e) { // save file_info in db Media_DB_Query media_db_query = new Media_DB_Query(); media_db_query.saveMedia(ApplicationState.GetValue <string>("user_id"), "ColorSnapshot", ApplicationState.GetValue <string>("savePath")); UnregisterEvent(); ColorSnapshot cs = new ColorSnapshot(); cs.Show(); this.Close(); }