private void AssignReferences()
 {
     ToggleButtonInstance        = this.GetGraphicalUiElementByName("ToggleButtonInstance") as Slotmachine.GumRuntimes.DefaultForms.TreeViewToggleButtonRuntime;
     ListBoxItemInstance         = this.GetGraphicalUiElementByName("ListBoxItemInstance") as Slotmachine.GumRuntimes.DefaultForms.ListBoxItemRuntime;
     InnerPanelInstance          = this.GetGraphicalUiElementByName("InnerPanelInstance") as Slotmachine.GumRuntimes.ContainerRuntime;
     ToggleButtonInstance.Click += (unused) => ToggleButtonInstanceClick?.Invoke(this);
     ListBoxItemInstance.Click  += (unused) => ListBoxItemInstanceClick?.Invoke(this);
 }
Example #2
0
 private void AssignReferences()
 {
     ToggleButtonInstance        = this.GetGraphicalUiElementByName("ToggleButtonInstance") as Pirates.GumRuntimes.DefaultForms.TreeViewToggleButtonRuntime;
     ListBoxItemInstance         = this.GetGraphicalUiElementByName("ListBoxItemInstance") as Pirates.GumRuntimes.DefaultForms.ListBoxItemRuntime;
     InnerPanelInstance          = this.GetGraphicalUiElementByName("InnerPanelInstance") as Pirates.GumRuntimes.ContainerRuntime;
     ToggleButtonInstance.Click += (unused) => ToggleButtonInstanceClick?.Invoke(this);
     ListBoxItemInstance.Click  += (unused) => ListBoxItemInstanceClick?.Invoke(this);
     InnerPanelInstance.Click   += (unused) => InnerPanelInstanceClick?.Invoke(this);
     if (tryCreateFormsObject)
     {
         FormsControl = new FlatRedBall.Forms.Controls.TreeViewItem(this);
     }
 }