HarvestingProcess.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using TMPro;
  4. using UnityEngine;
  5. using UnityEngine.UI;
  6. using WS;
  7. public class HarvestingProcessController : Controller<HarvestingProcessView, HarvestingProcessModel>
  8. {
  9. public override void Dispose()
  10. {
  11. base.Dispose();
  12. }
  13. protected override void BindingViewModel()
  14. {
  15. this._Model.Bind(this._View.btnBack, () =>
  16. {
  17. Debug.Log("·µ»ØÖ÷Ò³Ãæ");
  18. FacadeComponent.Instance.CreateController<HarvestingProcessController>().OpenView();
  19. FacadeComponent.Instance.CloseView(this._View, null);
  20. });
  21. }
  22. }
  23. public class HarvestingProcessModel : Model
  24. {
  25. public override void InitProperty()
  26. {
  27. }
  28. }
  29. public class HarvestingProcessView : View
  30. {
  31. public TMPro.TMP_InputField ifMedcineSeach;
  32. public ScrollRect svSeach;
  33. public ScrollRect svMedcineAll;
  34. public TMPro.TextMeshProUGUI txtMedcineDes;
  35. public TMPro.TextMeshProUGUI txtMedcineName;
  36. public TMPro.TextMeshProUGUI txtTitle;
  37. public Button btnEnterClass;
  38. public Button btnBack;
  39. public override void LoadInit()
  40. {
  41. ShowModeType = ViewShowModeType.Screen;
  42. ReferenceCollector rc = UIGameObject.GetComponent<ReferenceCollector>();
  43. ifMedcineSeach = rc.GetComponent<TMP_InputField>("ifMedcineSeach");
  44. svSeach = rc.GetComponent<ScrollRect>("svSeach");
  45. svMedcineAll = rc.GetComponent<ScrollRect>("svMedcineAll");
  46. txtMedcineName = rc.GetComponent<TextMeshProUGUI>("txtMedcineName");
  47. txtMedcineDes = rc.GetComponent<TextMeshProUGUI>("txtMedcineDes");
  48. txtTitle = rc.GetComponent<TextMeshProUGUI>("txtTitle");
  49. btnEnterClass = rc.GetComponent<Button>("btnEnterClass");
  50. btnBack = rc.GetComponent<Button>("btnBack");
  51. }
  52. }