private void btnSave_Click(object sender, RoutedEventArgs e)
        {
            string name = txtSuit.Text.Trim();

            if (string.IsNullOrEmpty(name))
            {
                MessageBox.Show("请取一个带感的名称!");
                return;
            }
            var check = LocalHelper.SuitList.Suits.Exists(d => d.Name == name && d.Id != _suitEntity.Id);

            if (check)
            {
                MessageBox.Show("该名称已经存在,请换一个.");
                return;
            }
            _suitEntity.Suitdatas.Clear();
            foreach (var item in DataGridSuit.ItemsSource)
            {
                var entity = item as LocalSuitEntity;

                if (entity.IsSelect)
                {
                    var data = new LocalTransferSuitDataEntity();
                    data.Id = entity.Id;
                    _suitEntity.Suitdatas.Add(data);
                }
            }
            _suitEntity.Name = name;
            if (_isNew)
            {
                LocalHelper.SuitList.Suits.Add(_suitEntity);
            }
            LocalHelper.SaveLocalTransferSuit();
            this.DialogResult = true;
            this.Close();
        }