private void HandleCopyPasteEvents()
{
string commandName;
Dictionary<string, int> dictionary;
int num;
Event current = Event.current;
switch (current.type)
{
case EventType.ValidateCommand:
commandName = current.commandName;
if (commandName != null)
{
if (<>f__switch$map16 == null)
{
dictionary = new Dictionary<string, int>(2);
dictionary.Add("Copy", 0);
dictionary.Add("Paste", 0);
<>f__switch$map16 = dictionary;
}
if (<>f__switch$map16.TryGetValue(commandName, out num) && (num == 0))
{
current.Use();
}
}
break;
case EventType.ExecuteCommand:
commandName = current.commandName;
if (commandName != null)
{
if (<>f__switch$map17 == null)
{
dictionary = new Dictionary<string, int>(2);
dictionary.Add("Copy", 0);
dictionary.Add("Paste", 1);
<>f__switch$map17 = dictionary;
}
if (<>f__switch$map17.TryGetValue(commandName, out num))
{
if (num == 0)
{
ColorClipboard.SetColor(ColorPicker.color);
current.Use();
}
else
{
Color color;
if ((num == 1) && ColorClipboard.TryGetColor(this.m_HDR, out color))
{
if (!this.m_ShowAlpha)
{
color.a = this.m_A;
}
this.SetColor(color);
this.colorChanged = true;
GUI.changed = true;
current.Use();
}
}
}
}
break;
}
}