﻿
function EstimatePanelControl(mainContainerId) {
    var control = {
        id: CreateUUID(),
        controlContainerId: mainContainerId,
        syncWithServerButtonId: ""
    };

    control.SyncWithServer = function () {
        Trace(this.id + "_page.SyncWithServer()");

        var btn = GetControl(this.syncWithServerButtonId);
        if (btn)
            btn.click();
    };

    return control;
}

if (typeof (Sys) !== 'undefined') Sys.Application.notifyScriptLoaded();
