private void actAdd_Click(object sender, RoutedEventArgs e)
        {
            EditStringSettings _wndEdtSet = new EditStringSettings();

            if (_wndEdtSet.ShowDialog() == true)
            {
                if (_wndEdtSet.ItemText != "")
                {
                    lstActvityTypes.Items.Add(_wndEdtSet.ItemText);
                }
                ActTypesChanged = true;
            }
        }
 private void actEdit_Click(object sender, RoutedEventArgs e)
 {
     if (lstActvityTypes.SelectedIndex >= 0)
     {
         EditStringSettings _wndEdtSet = new EditStringSettings();
         _wndEdtSet.SetItemText(lstActvityTypes.Items[lstActvityTypes.SelectedIndex].ToString());
         if (_wndEdtSet.ShowDialog() == true)
         {
             if (_wndEdtSet.ItemText != "")
             {
                 if (lstActvityTypes.Items[lstActvityTypes.SelectedIndex].ToString() != _wndEdtSet.ItemText)
                 {
                     lstActvityTypes.Items[lstActvityTypes.SelectedIndex] = _wndEdtSet.ItemText;
                 }
             }
             ActTypesChanged = true;
         }
     }
 }