private void AddButton_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(_repo.FilePath))
            {
                MessageBox.Show("Не задан путь");
                return;
            }

            var addWindow = new CreateEditWindow(_repo);

            addWindow.RefreshCallbackDelegate += this.ShowGrid;
            addWindow.Show();
            DropSelection();
        }
        private void ChangeButton_Click(object sender, RoutedEventArgs e)
        {
            if (string.IsNullOrEmpty(_repo.FilePath))
            {
                MessageBox.Show("Не задан путь");
                return;
            }

            if (!IsAnySelected())
            {
                return;
            }
            var addWindow = new CreateEditWindow(GetCurrent(), _repo);

            addWindow.RefreshCallbackDelegate    += ShowGrid;
            addWindow.GetCurrentCallbackDelegate += GetCurrent;
            addWindow.DropDelegate += DropSelection;
            addWindow.Show();
        }