public NewSchedule(int soundId)
        {
            InitializeComponent();
            soundInfo selectData = (from s in _db.soundInfoes
                                    where s.C_id == soundId
                                    select s).Single();
            string soundTitle = selectData.soundTitle;

            voiceFile.Text = soundTitle;
        }
        private void updateData(object sender, RoutedEventArgs e)
        {
            soundInfo editSound = (from s in _db.soundInfoes
                                   where s.C_id == Id
                                   select s).Single();

            editSound.soundDescription = soundDesc.Text;
            _db.SaveChanges();
            MainWindow.gridData.ItemsSource = _db.soundInfoes.ToList();
            this.Hide();
        }
        public EditRecord(int soundId)
        {
            InitializeComponent();
            Id = soundId;
            soundInfo selectData = (from s in _db.soundInfoes
                                    where s.C_id == soundId
                                    select s).Single();

            soundTitle.Text = selectData.soundTitle;
            soundDesc.Text  = selectData.soundDescription;
            recordBy.Text   = selectData.recordedBy;
        }