Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
ECE-Senior-Design/DataScraperGUI/Programs/NormalProgram.cs
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
33 lines (26 sloc)
993 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Windows.Controls; | |
using DataScraperGUI.Infrastructure; | |
namespace DataScraperGUI.Programs { | |
public class NormalProgram : Program { | |
// Constants | |
public const string OutputFilename = @"~/csv/normal_program.csv"; | |
private StringBuilder sb; | |
public NormalProgram (Logger l, ProgressBar p) : base(l, p) { } | |
public override void Execute() { | |
logger.LogMessage("Starting the 'Normal' program."); | |
// Setup Simulation | |
sb = new StringBuilder(); | |
GenerateHeader(); // Write the CSV header | |
logger.LogError("This program has not yet been implemented."); | |
logger.LogMessage("Ending the 'Normal' program."); | |
progressBar.Value = 100; | |
} | |
private void GenerateHeader () { | |
sb.AppendLine(); | |
} | |
} | |
} |