//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- private void UpdateViewValues() { if (DataManager.selectedCity != null) { CityButton.SetTitle(DataManager.selectedCity.name, UIControlState.Normal); } if (DataManager.selectedDivision != null) { DivisionButton.SetTitle(DataManager.selectedDivision.name, UIControlState.Normal); } if (DataManager.selectedMachineType != null) { TypeButton.SetTitle(DataManager.selectedMachineType.name, UIControlState.Normal); TypeImageButton.SetBackgroundImage(UIImage.FromFile(DataManager.selectedMachineType.iconName), UIControlState.Normal); } if (DataManager.selectedMachineState != null) { StateButton.SetTitle(DataManager.selectedMachineState.name, UIControlState.Normal); StateImageButton.SetBackgroundImage(UIImage.FromFile(DataManager.selectedMachineState.iconName), UIControlState.Normal); } if (DataManager.selectedMachineServiceState != null) { ServiceStateButton.SetTitle(DataManager.selectedMachineServiceState.name, UIControlState.Normal); ServiceStateImageButton.SetBackgroundImage(UIImage.FromFile(DataManager.selectedMachineServiceState.iconName), UIControlState.Normal); } OnlyMyButton.SetState(DataManager.onlyMyMachines, false); }
private void Awake() { ratio = Screen.width / width; gridArr = new Vector2[11, 11]; gridViewArr = new Vector2[11, 11]; gridcs = gridGO.GetComponent <grid>(); grAcs = gridAnswerGO.GetComponent <gridAnswer>(); PBcs = PlusButtonGO.GetComponent <PlusButton>(); Pcs = PalleteGO.GetComponent <Palette>(); MBcs = MinusButtonGO.GetComponent <MinusButton>(); MPBcs = MultiplicationButtonGO.GetComponent <MultiplicationButton>(); DBcs = DivisionButtonGO.GetComponent <DivisionButton>(); for (int i = 0; i < 10; i++) { Numcs[i] = NumGO[i].GetComponent <NumButton>(); } //////////////////////////// 정의 DataBasecs = GetComponent <DB>(); GetData(); gridcs.MakeGrid(gridSize); grAcs.MakeGrid(gridSize); SetOperStack(); SetNumStack(); OffInteractable_Num(); SetOperButton(); gridcs.isfinish_setting = true; }
void ReleaseDesignerOutlets() { if (AboutButton != null) { AboutButton.Dispose(); AboutButton = null; } if (AdditionButton != null) { AdditionButton.Dispose(); AdditionButton = null; } if (ClearButton != null) { ClearButton.Dispose(); ClearButton = null; } if (DisplayLabel != null) { DisplayLabel.Dispose(); DisplayLabel = null; } if (DivisionButton != null) { DivisionButton.Dispose(); DivisionButton = null; } if (EightButton != null) { EightButton.Dispose(); EightButton = null; } if (EqualsButton != null) { EqualsButton.Dispose(); EqualsButton = null; } if (FiveButton != null) { FiveButton.Dispose(); FiveButton = null; } if (FourButton != null) { FourButton.Dispose(); FourButton = null; } if (historyCalcSwipeGesture != null) { historyCalcSwipeGesture.Dispose(); historyCalcSwipeGesture = null; } if (MultiplyButton != null) { MultiplyButton.Dispose(); MultiplyButton = null; } if (NineButton != null) { NineButton.Dispose(); NineButton = null; } if (OneButton != null) { OneButton.Dispose(); OneButton = null; } if (SevenButton != null) { SevenButton.Dispose(); SevenButton = null; } if (SixButton != null) { SixButton.Dispose(); SixButton = null; } if (SubtractButton != null) { SubtractButton.Dispose(); SubtractButton = null; } if (SymbolLabel != null) { SymbolLabel.Dispose(); SymbolLabel = null; } if (ThreeButton != null) { ThreeButton.Dispose(); ThreeButton = null; } if (TwoButton != null) { TwoButton.Dispose(); TwoButton = null; } if (ZeroButton != null) { ZeroButton.Dispose(); ZeroButton = null; } }
void ReleaseDesignerOutlets() { if (CityButton != null) { CityButton.Dispose(); CityButton = null; } if (DivisionButton != null) { DivisionButton.Dispose(); DivisionButton = null; } if (OnlyMyButton != null) { OnlyMyButton.Dispose(); OnlyMyButton = null; } if (ServiceStateButton != null) { ServiceStateButton.Dispose(); ServiceStateButton = null; } if (ServiceStateImageButton != null) { ServiceStateImageButton.Dispose(); ServiceStateImageButton = null; } if (StateButton != null) { StateButton.Dispose(); StateButton = null; } if (StateImageButton != null) { StateImageButton.Dispose(); StateImageButton = null; } if (TypeButton != null) { TypeButton.Dispose(); TypeButton = null; } if (TypeImageButton != null) { TypeImageButton.Dispose(); TypeImageButton = null; } if (UserButton != null) { UserButton.Dispose(); UserButton = null; } }