var EditDialog = function (parent) {
    this.Parent = parent;

    this.Setup = function () {
        $("#edit-sure-btn").on("click", this.OnSureButtonClick.bind(this));
        $("#edit-cancel-btn").on("click", this.HideDialog.bind(this));
        $("#edit-close").on("click", this.HideDialog.bind(this));
    };

    this.Show = function (data) {
        $('#edit-dialog').show();
        $("#username").textbox('setValue', data.Name);
    };

    this.OnSureButtonClick = function () {
        $('#edit-dialog').hide();
    };

    this.HideDialog = function () {
        $('#edit-dialog').hide();
    };
};