public static void Next() { ++ScriptPosition; if (ScriptPosition <= ScriptLength) { ActionType = int.Parse(SQLEngine.GetValue("SELECT CmdID FROm ScnScript WHERE ID =" + ScriptPosition.ToString())); switch (ActionType) { case 1: TryHard.This(() => SQLEngine.ImagePath()); GraphicEngine.SetBackground(); //MessageBox.Show(text: ScriptPosition.ToString()); break; case 2: break; case 3: break; } } else { MessageBox.Show(text: "End of Script."); } }
public static void GameInit() { ActionType = int.Parse(SQLEngine.GetValue("SELECT CmdID FROm ScnScript WHERE ID =" + ScriptPosition.ToString())); switch (ActionType) { case 1: TryHard.This(() => SQLEngine.ImagePath()); GraphicEngine.SetBackground(); break; case 2: break; case 3: break; } }
private void listBox1_SelectedIndexChanged(object sender, EventArgs e) { TryHard.This(() => ScenarioSelected(listBox1, label3), "Failed to update Scenario Text at Label3"); }
private void Form3_Load(object sender, EventArgs e) { //Fill ListBox1; TryHard.This(() => FillScenarioListBox(listBox1), "Failed to fill Scenario List."); }
private void Form1_Load(object sender, EventArgs e) { TryHard.This(() => FillScenarioList(listBox1), "Failed to fill Scenario List"); }