void PPFromFile_Click(object sender, EventArgs e) { SFromData.Enabled = true; SFromFile.Enabled = true; paceParametersLoadedFromFile = true; StratSimPanelControlEvents.OnLoadPaceParametersFromFile(); }
void SFromFile_Click(object sender, EventArgs e) { strategiesLoadedFromFile = true; ViewStrategies.Enabled = false; SFromData.Enabled = true; StratSimPanelControlEvents.OnLoadStrategiesFromFile(); }
/// <summary> /// Starts the project and provides an IO controller for forms relating to this project. /// </summary> /// <returns>An instance of an IO controller used for forms for this project</returns> public static StratSimFormIOController StartProject() { Main(); StratSimWindowFlowPanel MainPanel = new StratSimWindowFlowPanel(); StratSimPanelControlEvents Events = new StratSimPanelControlEvents(); StratSimMyToolbar Toolbar = new StratSimMyToolbar(MainPanel, Events); return(new StratSimFormIOController(MainPanel, Toolbar, Events, "StratSim")); }
void RaceSelectBox_SelectedIndexChanged(object sender, EventArgs e) { Data.RaceIndex = RaceSelectBox.SelectedIndex; PaceParameters.Visible = true; ViewParameters.Enabled = false; ViewStrategies.Enabled = false; Strategies.Visible = false; Race.Visible = false; PPFromFile.Enabled = true; PPFromRace.Enabled = true; SFromData.Enabled = true; SFromFile.Enabled = true; StratSimPanelControlEvents.OnRemoveGraphPanels(LinkedForm); }
public void LinkToEvents(StratSimPanelControlEvents Events) { Events.BeforeLoadStrategiesFromData += NotifyIfModified; Events.BeforeLoadStrategiesFromFile += NotifyIfModified; }
public void LinkToEvents(StratSimPanelControlEvents Events) { Events.BeforeStartRaceFromStrategies += PanelControlEvents_StartRaceFromStrategies; }
void Archives_Click(object sender, EventArgs e) { StratSimPanelControlEvents.OnShowArchives(LinkedForm); }
void ViewParameters_Click(object sender, EventArgs e) { StratSimPanelControlEvents.OnShowPaceParameters(LinkedForm); }
void ViewStrategies_Click(object sender, EventArgs e) { StratSimPanelControlEvents.OnShowStrategies(LinkedForm); }
void ViewRace_Click(object sender, EventArgs e) { StratSimPanelControlEvents.OnShowRacePanel(LinkedForm); }
void DataInput_Click(object sender, EventArgs e) { StratSimPanelControlEvents.OnShowDataInput(LinkedForm); }