public ImportMessageBox() { ImportButton = AddButton(1, 2, ImportClick); ImportButton.text = NodeMarkup.Localize.Settings_Restore; ImportButton.Disable(); CancelButton = AddButton(2, 2, CancelClick); CancelButton.text = NodeMarkup.Localize.Settings_Cancel; AddFileList(); }
private void DropDownIndexChanged(UIComponent component, int value) { if (DropDown.SelectedObject != null) { ImportButton.Enable(); } else { ImportButton.Disable(); } }