//version:1.0
//published by:Ghenadie
//company:http://
//description:
//assembly:SendSMS.dll
//namespace:SendSMS

function SendSMSActivity(element) {
	this.element = element
	element.innerHTML = "<table class='activitytable' height='100%'><tr><td valign='center'><img src='"+SendSMSActivity.GetToolboxIcon()+"'></td><td valign='center'><DIV id='"+element.id+"_id' class='idlabel'>"+element.id+"</DIV></td><td align='right' class='jacks'></td></tr></table>"	
	this.group = Quanticks.drag().createSimpleActivity(element)
	this.Properties = new Array()
	this.RegisteredProperties = new Array()
	this.RegisteredProperties[0] = "Name"
	this.RegisteredProperties[1] = "Description"
	this.RegisteredProperties[2] = "Enabled"	
	this.RegisteredProperties[3] = "Number"
    this.RegisteredProperties[4] = "Provider"
    this.RegisteredProperties[5] = "Message"

	this.BindableProperties = new Array()
	this.BindableProperties[0] = "Number"
    this.BindableProperties[1] = "Provider"
    this.BindableProperties[2] = "Message"

	this.EnumProperties = new Array()
	this.EnumValues = new Array()	
	this.EnumProperties[0] = "Provider"
    this.EnumValues[0] = "TMobile,Virgin,Cingular,Sprint,Verizon,Nextel"
	
	this.ActWidth = 100
	this.BlockWidth = 100	
}

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

SendSMSActivity.prototype = {
    Initialize : function()
    {
            AddJacks(this);    
    },
    
    Serialize : function()
    {
        var nsIndex = namespaces.length + 1;
        namespaces[namespaces.length] = "xmlns:ns"+nsIndex+"=\"clr-namespace:SendSMS;Assembly=SendSMS, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null\"";
        var activityFactory = Quanticks.activityFactory()
        var result = "";
        result += "<ns"+nsIndex+":SendSMSActivity "
        for (var propi = 0;propi<this.RegisteredProperties.length;propi++)
        {
            if (this.RegisteredProperties[propi]=="Name")
                result += "x:";
            if (typeof this.Properties[this.RegisteredProperties[propi]] != "undefined" && this.Properties[this.RegisteredProperties[propi]]!="")
                result += this.RegisteredProperties[propi]+"=\""+this.Properties[this.RegisteredProperties[propi]]+"\" ";
        }
        result += "/>\n"            
        return result
    }    
    
}




