コード例 #1
0
 public ColorPresenter(string title, Color foreground, int width)
     : base(width, 1)
 {
     textSurface.DefaultForeground = foreground;
     Clear();
     _title = title;
     _popup = new Windows.ColorPickerPopup();
     _popup.Closed += (o, e) =>
         {
             if (_popup.DialogResult)
                 SelectedColor = _popup.SelectedColor;
         };
 }
コード例 #2
0
 public ColorPresenter(string title, Color foreground, int width) : base(width, 1)
 {
     textSurface.DefaultForeground = foreground;
     Clear();
     _title         = title;
     _popup         = new Windows.ColorPickerPopup();
     _popup.Closed += (o, e) =>
     {
         if (_popup.DialogResult)
         {
             SelectedColor = _popup.SelectedColor;
         }
     };
 }