﻿//version:1.0
//published by:Microsoft
//company:http://www.microsoft.com
//description:Unknown Activity
//assembly:System.Workflow.Activities.dll

function UnknownActivity(element) {
	this.element = element
	element.innerHTML = "<table class='activitytable' height='100%'><tr><td valign='center'><img src='"+UnknownActivity.GetToolboxIcon()+"'></td><td valign='center'><DIV id='"+element.id+"_id' class='idlabel'>"+element.id+"</DIV></td></tr></table>"	
	this.group = Quanticks.drag().createSimpleActivity(element)
	this.Properties = new Array()
	this.RegisteredProperties = new Array()
	this.RegisteredProperties[0] = "Name"
	this.RegisteredProperties[1] = "Type"
		
	this.ActWidth = 100
	this.BlockWidth = 100
	this.outerXML = ""	
}

UnknownActivity.GetToolboxIcon = function()
{
    return "http://netfxlive.com/images/UnknownActivity.GIF";
}

UnknownActivity.prototype = {
    Initialize : function()
    {
    },
    
    Serialize : function()
    { 
        return this.outerXML
    },
    Deserialize: function(node,connector)
    {
        this.outerXML=node.xml
        setProperty(node.getAttribute("x:Name"), "Type", node.tagName )
    }        
}



