示例#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();
 }