private void delete_btn__Click(object sender, RoutedEventArgs e)
        {
            MessageBoxResult result = MessageBox.Show("Are you sure you want to delete?", "BBTG", MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No);

            if (result == MessageBoxResult.Yes)
            {
                try
                {
                    tagNames.Remove(tag.TagName);
                    int TagId = tag.TagId;
                    _tagViewModel.DeleteTagData(TagId);
                    tags = _tagViewModel.LoadTagData();
                    tag_data_grid.ItemsSource = tags;
                    ClearAll();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
            }
        }