private void HandleDuplicate()
{
if (((Event.current.type == EventType.ValidateCommand) || (Event.current.type == EventType.ExecuteCommand)) && (Event.current.commandName == "Duplicate"))
{
if (Event.current.type == EventType.ExecuteCommand)
{
Undo.RegisterCompleteObjectUndo(this.m_RectsCache, "Duplicate sprite");
this.selected = this.AddSprite(this.selected.m_Rect, (int) this.selected.m_Alignment, this.selected.m_Pivot, this.defaultColliderAlphaCutoff, this.defaultColliderDetail);
}
Event.current.Use();
}
}