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(); }
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(); } }