private void Delete_Plan(object sender, RoutedEventArgs e)
 {
     if (budget_Grid.SelectedIndex > -1)
     {
         _dalCl.Delete_Plan(Converter_Profit_Expence.WPF_to_DAL(budget_Grid.Items[budget_Grid.SelectedIndex] as Profit_ExpenceWPF_DTO), CurrentUser.Login);
     }
     Show_All_Plans_Click(sender, e);
 }
 private void Save_New_Plan_Click(object sender, RoutedEventArgs e)
 {
     if (type.Text != null && description.Text != null)
     {
         if (Decimal.TryParse(sum.Text, System.Globalization.NumberStyles.AllowCurrencySymbol, CultureInfo.CreateSpecificCulture("uk-UA"), out decimal number) == true)
         {
             Profit_ExpenceWPF_DTO new_plan = new Profit_ExpenceWPF_DTO()
             {
                 Date_ = date_plan.SelectedDate.Value,
                 Sum   = number,
                 Profit_Expance_Type = type.Text.ToString(),
                 Description         = description.Text
             };
             _dalCl.Save_New_Plan(Converter_Profit_Expence.WPF_to_DAL(new_plan), type.Text.ToString(), CurrentUser.Login);
             sum.Text         = "";
             description.Text = "";
         }
     }
 }