Exemple #1
0
    public void ChangeMetadataSelection()
    {
        var pc = SelectedItems.First();
        var rd = new RenameColorDialog(pc.Color, pc.Metadata, "Change Metadata");

        if (rd.Run() == (int)ResponseType.Ok)
        {
            appPal.ChangeMetadata(pc, rd.NewText);
        }
        rd.Destroy();
    }
Exemple #2
0
 public void RenameSelected()
 {
     if (SelectedItems.Count() > 0)
     {
         var pc = SelectedItems.First();
         var rd = new RenameColorDialog(pc.Color, pc.Name);
         if (rd.Run() == (int)ResponseType.Ok)
         {
             appPal.RenameColor(pc, rd.NewText);
         }
         rd.Destroy();
     }
 }