public frmCommerceCityEditor(Dictionary <String, City> cityData, frmCommerce Commerce) { commerce = Commerce; CityData = new Dictionary <string, City>(cityData); oldData = cityData; InitializeComponent(); }
public frmTimeTracker(List <String> transportNames, Dictionary <String, Dictionary <String, List <TimeSpan> > > timeData, frmCommerce commerce) { InitializeComponent(); TransportNames = new List <String>(transportNames); commerceCaller = commerce; //TimeData = new Dictionary<String, Dictionary<String, List<TimeSpan>>>(timeData); TimeData = duplicateTimeDictionary(timeData); CityNames = commerce.CityData.Keys.ToList(); }
public frmTransport(Dictionary <String, Transport> transportData, frmCommerce commerce) { InitializeComponent(); TransportData = new Dictionary <String, Transport>(transportData); Commerce = commerce; }
/// <summary> /// Event handler for launching the Commerce Calculator /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnCommerce_Click(object sender, EventArgs e) { Forms.Commerce_Calculator.frmCommerce nextForm = new Forms.Commerce_Calculator.frmCommerce(); //We want the user to display as many windows as they choose, therefore using Show instead of ShowDialog nextForm.Show(); }