private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         _settingsProxy.PointsSource = (int)pointsSourceComboBox.SelectedItem;
         _settingsProxy.PointsCount  = Convert.ToInt32(countNumeric.Value);
         if (listComboBox.SelectedItem != null)
         {
             _settingsProxy.SelectedListId = (listComboBox.SelectedItem as PointListProxy).Id;
         }
         else
         {
             PointListProxy pointListProxy = new PointListProxy()
             {
                 Name = "List1"
             };
             _settingsProxy.SelectedListId = PointListAdapter.SaveItem(pointListProxy).PointListId;
         }
         _settingsProxy.ControlType         = (int)controlTypeComboBox.SelectedItem;
         _settingsProxy.DisplayTime         = Convert.ToInt32(displayTimeNumeric.Value);
         _settingsProxy.Interval            = Convert.ToInt32(intervalNumeric.Value);
         _settingsProxy.BackgroundColorArgb = ColorButton.BackColor.ToArgb();
         SettingsAdapter.SaveSettings(_settingsProxy);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, ex.GetType().ToString());
     }
 }