コード例 #1
0
 public EmployeeFinderWidget(BaseScene scene) : base()
 {
     this.scene             = scene;
     searchTexture          = ContentLoader.GetTexture("search");
     padlock                = ContentLoader.GetTexture("padlock");
     confirmButton          = new SmallDetailButtonWidget();
     confirmButton.Text     = "Assign";
     confirmButton.OnClick += ConfirmButton_OnClick;
 }
コード例 #2
0
        public PopupWidget() : base()
        {
            bg                    = ContentLoader.GetTexture("popup-background");
            buttonAccept          = new SmallDetailButtonWidget();
            buttonAccept.Text     = "Purchase";
            buttonAccept.OnClick += ButtonAccept_OnClick;

            buttonCancel          = new SmallDetailButtonWidget();
            buttonCancel.Text     = "Cancel";
            buttonCancel.OnClick += ButtonCancel_OnClick;
        }