private void Delete(object sender, RoutedEventArgs e)
        {
            if (cbID.SelectedIndex > -1)
            {
                string str = cbID.SelectedItem.ToString().Remove(0, 38);
                DataWork.Delete(Convert.ToInt32(str), "Transactions");
                Update();
                this.Close();
            }

            /*else
             * {
             *  Window wn = new wnError("Не все поля были заполнены", this);
             *  wn.ShowDialog();
             *  //ActiveUser.wnError= wn;
             *  //this.IsEnabled=false;
             *  //ActiveUser.wnError = wn;
             * }*/
        }