コード例 #1
0
 public void GetButton(Guid id)
 {
     foreach (ButtonObject btnObj in buttonObjects)
     {
         if (btnObj.btnID == id)
         {
             btnObject   = btnObj;
             this.button = btnObj.getButton();
         }
     }
 }
コード例 #2
0
        public void AddButtonObject(ButtonObject buttonObject)
        {
            Button btn = buttonObject.InitiateButton();

            this.buttonObjects.Add(buttonObject);
            this.Controls.Add(btn);

            this.button = btn;

            this.button.Click += Button_Click;
        }
コード例 #3
0
 public void RemoveButtonObject(ButtonObject buttonObject)
 {
     this.Controls.Remove(buttonObject.getButton());
 }