private void BtnManualAccept_Click(object sender, RoutedEventArgs e) { _group.SetImportance(_cbImportance.SelectedItem as Importance); _group.SetFrequence(_cbFrequent.SelectedItem as Frequency); _group.SetDate(DateTime.ParseExact(_labDate.Content.ToString(), Properties.strings.dateFormat, System.Globalization.CultureInfo.InvariantCulture)); UpdateOperationsGroupTags(); _group.SetDescription(_tbNewDescription.Text); try { Service.UpdateOperationsGroupComplex(_group); ViewsMemory.AddedGroup?.Invoke(_group); ResetEditableControls(); SetEditableControls(); var group = new OperationsGroup(null, Service.User, "", null, null, DateTime.Now); SetOperationsGroupValues(group); } catch (Exception ex) { var dialog = new MessageBox(Properties.strings.messageBoxStatement, ex.Message); dialog.ShowDialog(); } }