public ShowPaletteAction(string persist) : base(Parameters.Action_ShowPalette) { int id; if (int.TryParse(persist, out id)) { Purpose = new Palette.Purpose(id); } else { Purpose = new Palette.Purpose(new Guid(persist)); } }
public ShowPaletteAction(Palette.Purpose purpose) : base(Parameters.Action_ShowPalette) { Purpose = purpose; }