var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports", "../../../core/Bind", "../../../core/XNode", "../../../services/NavigationService", "../../controls/AtomControl"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var Bind_1 = require("../../../core/Bind");
    var XNode_1 = require("../../../core/XNode");
    var NavigationService_1 = require("../../../services/NavigationService");
    var AtomControl_1 = require("../../controls/AtomControl");
    var WindowSample = /** @class */ (function (_super) {
        __extends(WindowSample, _super);
        function WindowSample() {
            return _super !== null && _super.apply(this, arguments) || this;
        }
        WindowSample.prototype.create = function () {
            var ns = this.resolve(NavigationService_1.NavigationService);
            this.render(XNode_1.default.create("div", null,
                XNode_1.default.create("button", { eventClick: Bind_1.default.event(function () { return ns.alert("Alert"); }) }, "Alert"),
                XNode_1.default.create("button", { eventClick: Bind_1.default.event(function () { return ns.confirm("Confirm"); }) }, "Confirm")));
        };
        return WindowSample;
    }(AtomControl_1.AtomControl));
    exports.default = WindowSample;
});
//# sourceMappingURL=WindowSample.js.map