private void OnItemHoverDelegate(BudgetLabel label, bool hover) { var fontStyle = hover ? FontStyle.Bold : FontStyle.Normal; label.valueLabel.fontStyle = label.nameLabel.fontStyle = fontStyle; OnItemHovering?.Invoke(label.name, hover); if (hover) { UpdateSelectedAreaAndVal(label.name); } }
void ReleaseDesignerOutlets() { if (AllEmployeesLabel != null) { AllEmployeesLabel.Dispose(); AllEmployeesLabel = null; } if (BudgetLabel != null) { BudgetLabel.Dispose(); BudgetLabel = null; } if (BudgetTextField != null) { BudgetTextField.Dispose(); BudgetTextField = null; } if (EmployeePosition != null) { EmployeePosition.Dispose(); EmployeePosition = null; } if (FilteredManagersLabel != null) { FilteredManagersLabel.Dispose(); FilteredManagersLabel = null; } if (IDRemoveTextField != null) { IDRemoveTextField.Dispose(); IDRemoveTextField = null; } if (isAddingSuccessfulLabel != null) { isAddingSuccessfulLabel.Dispose(); isAddingSuccessfulLabel = null; } if (LevelTextField != null) { LevelTextField.Dispose(); LevelTextField = null; } if (LevelToFilterTextField != null) { LevelToFilterTextField.Dispose(); LevelToFilterTextField = null; } if (NameTextField != null) { NameTextField.Dispose(); NameTextField = null; } if (SalaryTextField != null) { SalaryTextField.Dispose(); SalaryTextField = null; } }