예제 #1
0
 public frmCommerceCityEditor(Dictionary <String, City> cityData, frmCommerce Commerce)
 {
     commerce = Commerce;
     CityData = new Dictionary <string, City>(cityData);
     oldData  = cityData;
     InitializeComponent();
 }
예제 #2
0
 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();
 }
예제 #3
0
 public frmTransport(Dictionary <String, Transport> transportData, frmCommerce commerce)
 {
     InitializeComponent();
     TransportData = new Dictionary <String, Transport>(transportData);
     Commerce      = commerce;
 }
예제 #4
0
 /// <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();
 }