Beispiel #1
0
        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));
            }
        }
Beispiel #2
0
 public ShowPaletteAction(Palette.Purpose purpose) : base(Parameters.Action_ShowPalette)
 {
     Purpose = purpose;
 }