void ReleaseDesignerOutlets() { if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (DotView != null) { DotView.Dispose(); DotView = null; } if (ProjectLabel != null) { ProjectLabel.Dispose(); ProjectLabel = null; } if (StartView != null) { StartView.Dispose(); StartView = null; } }
private void ConfigValue() { for (int i = 0; i < 5; i++) { int[] tmpR = null; switch (i) { case 0: tmpR = r1; break; case 1: tmpR = r2; break; case 2: tmpR = r3; break; case 3: tmpR = r4; break; case 4: tmpR = r5; break; } for (int j = 0; j < 5; j++) { Dot tmp = new Dot(new Vector2(j, i * -1), tmpR[j]);; dots[j, i] = tmp; DotView dv = Instantiate(prefab, new Vector3(j, i * -1, 0), Quaternion.identity).GetComponent <DotView>(); dv.ConfigColor(GetColor(tmp.typeValue)); dv.name = "dots[j, i]" + i + "|" + j + ":|value" + tmp.typeValue; } } }
void ReleaseDesignerOutlets() { if (DescriptionLabel != null) { DescriptionLabel.Dispose(); DescriptionLabel = null; } if (DotView != null) { DotView.Dispose(); DotView = null; } if (DurationLabel != null) { DurationLabel.Dispose(); DurationLabel = null; } if (ErrorMessageLabel != null) { ErrorMessageLabel.Dispose(); ErrorMessageLabel = null; } if (ProjectNameLabel != null) { ProjectNameLabel.Dispose(); ProjectNameLabel = null; } if (RunningTimerContainerCompactBottomConstraint != null) { RunningTimerContainerCompactBottomConstraint.Dispose(); RunningTimerContainerCompactBottomConstraint = null; } if (RunningTimerContainerView != null) { RunningTimerContainerView.Dispose(); RunningTimerContainerView = null; } if (ShowAllTimeEntriesButton != null) { ShowAllTimeEntriesButton.Dispose(); ShowAllTimeEntriesButton = null; } if (StartButton != null) { StartButton.Dispose(); StartButton = null; } if (StopButton != null) { StopButton.Dispose(); StopButton = null; } if (SuggestionsContainerExpandedBottomConstraint != null) { SuggestionsContainerExpandedBottomConstraint.Dispose(); SuggestionsContainerExpandedBottomConstraint = null; } if (SuggestionsContainerView != null) { SuggestionsContainerView.Dispose(); SuggestionsContainerView = null; } if (SuggestionsLabel != null) { SuggestionsLabel.Dispose(); SuggestionsLabel = null; } if (SuggestionsTableView != null) { SuggestionsTableView.Dispose(); SuggestionsTableView = null; } if (SuggestionsTableViewHeightConstraint != null) { SuggestionsTableViewHeightConstraint.Dispose(); SuggestionsTableViewHeightConstraint = null; } }