private void btnGenerateTaskTimbang_Click(object sender, EventArgs e) { PreparationLogic obj = new PreparationLogic(); obj.GenerateTaskTimbang("MO_SHP_1", DateTime.Now.Date, true); MessageBox.Show("Done"); }
public void SetCurrentPreparationLogic(PreparationLogic logic) { if (IsPlayer1Active()) { player1Preparation = logic; } else { player2Preparation = logic; } }
private PreparationLogicHolder LoadPlayerSelection() { Debug.Log("load saved PreparationLogicHolder"); PreparationLogicHolder holder = Instantiate(preparationLogicHolderPrefab, null); holder.name = "PreparationLogicHolder"; PreparationLogic logic = PreparationLogic.LoadFromFile(System.IO.Path.Combine(gameObject.scene.path, "../playerSelection.xml")); holder.player1Preparation = logic; return(holder); }
// Start is called before the first frame update void Start() { Debug.Log("start preparation main"); preparationLogicHolder = GetHolder(); DontDestroyOnLoad(preparationLogicHolder); logic = preparationLogicHolder.GetCurrentPreparationLogic(); logic.selectionFullnessChanged = null; logic.selectionFullnessChanged += NextButtonFullnessChanged; SyncCards(); ConfigureButtons(); }