﻿// README
//
// There are two steps to adding a property:
//
// 1. Create a member variable to store your property
// 2. Add the get_ and set_ accessors for your property
//
// Remember that both are case sensitive!


/// <reference name="MicrosoftAjaxTimer.debug.js" />
/// <reference name="MicrosoftAjaxWebForms.debug.js" />
/// <reference name="AjaxControlToolkit.ExtenderBase.BaseScripts.js" assembly="AjaxControlToolkit" />


Type.registerNamespace('OnLineExt.MPStat');

OnLineExt.MPStat.UsersStatBehavior = function(element) {
    OnLineExt.MPStat.UsersStatBehavior.initializeBase(this, [element]);

    // TODO : (Step 1) Add your property variables here
    this._myPropertyValue = null;
}
OnLineExt.MPStat.UsersStatBehavior.prototype = {
    initialize: function() {
        OnLineExt.MPStat.UsersStatBehavior.callBaseMethod(this, 'initialize');

        // TODO: Add your initalization code here
    },

    dispose: function() {
        // TODO: Add your cleanup code here

        OnLineExt.MPStat.UsersStatBehavior.callBaseMethod(this, 'dispose');
    },

    get_UsersCount: function() {
        throw Error.notImplemented();
    },

    set_UsersCount: function(value) {
        var e = this.get_element();
        e.innerHTML = "u:" + value;
    },

    // TODO: (Step 2) Add your property accessors here
    get_MyProperty: function() {
        return this._myPropertyValue;
    },

    set_MyProperty: function(value) {
        this._myPropertyValue = value;
    }
}
OnLineExt.MPStat.UsersStatBehavior.registerClass('OnLineExt.MPStat.UsersStatBehavior', AjaxControlToolkit.BehaviorBase, OnLineExt.Common.ISetUsersStat);


