internal static void SetColor(bool end) { Model.Frame frm = MWin.I.ActFrm[0]; _dlg = new Dialogs.ColorDialog(); _dlg.SetSelectedColors(frm.BegColor, frm.EndColor, !end); _dlg.SelectedColorChanged += ColorChange; bool rez = _dlg.ShowDialog().GetValueOrDefault(); if (rez) { frm.SetColors(_dlg.SelectedColorStart, _dlg.SelectedColorEnd); MWin.I.ActFrm[0].Root.UpdateAnimation(); } }