function DropdownClass.Set(F,J)if F._Selected~=J then F._Selected=J F._ChangedBind:Fire(J)F.Button.Option.Text=J.Text end F:Show(false)end function DropdownClass.Get(J)return J._Selected end function DropdownClass.Show(F,J)F.Button.Arrow.Image=J and ARROW_UP or ARROW_DOWN F.ListFrame.Visible=J end function DropdownClass.Destroy(J)J._Maid:Sweep()J._ChangedBind:Destroy()J._Changed=nil J._Options=nil J._Selected=nil end


function DropdownClass:Set(option)
	if (self._Selected ~= option) then
		self._Selected = option
		self._ChangedBind:Fire(option)
		self.Button.Option.Text = option.Text
	end
	self:Show(false)
end

function DropdownClass:Get()
	return self._Selected
end

function DropdownClass:Show(bool)
	self.Button.Arrow.Image = bool and ARROW_UP or ARROW_DOWN
	self.ListFrame.Visible = bool
end

function DropdownClass:Destroy()
	self._Maid:Sweep()
	self._ChangedBind:Destroy()
	self._Changed = nil
	self._Options = nil
	self._Selected = nil
end
