public GradientEditPanel(Gradient state)
 {
     InitializeComponent();
     _state       = state;
     ignoreUpdate = true;
     RefreshState();
     ignoreUpdate = false;
 }
 public GradientEditPanel(Gradient state, bool isNewState)
 {
     InitializeComponent();
     _state       = state;
     ignoreUpdate = isNewState;
     RefreshState();
     UpdateState();
     ignoreUpdate = false;
 }