public Gradient(PalPanel src) { InitializeComponent(); Misc.SetLanguage(this); PreviewPanel.PalSource = new PalFile(); SourceColorList = src.PalSource.Data; Misc.DeepCopy(SourceColorList, PreviewPanel.PalSource.Data); Misc.DeepCopy(src.Selections, PreviewPanel.Selections); InitializeStartingGroup(PreviewPanel.Selections.LastOrDefault()); InitializeEndingGroup(PreviewPanel.Selections.LastOrDefault()); nudStartingIdx.Value = PreviewPanel.Selections.LastOrDefault(); }
public Find(PalPanel src) { InitializeComponent(); Misc.SetLanguage(this); srcPanel = src; isColorUpdating = true; Color lastSelColor = Color.FromArgb(srcPanel.PalSource[srcPanel.Selections.LastOrDefault()]); nudRed.Value = lastSelColor.R; nudGreen.Value = lastSelColor.G; nudBlue.Value = lastSelColor.B; UpdatePreview(); isColorUpdating = false; }