示例#1
0
        public RouteTableForm()
        {
            //Main
            InitializeComponent();
            //get the connected greenhouse from the selected green house
            DrawGreenhouse kas = new DrawGreenhouse();

            Coordinaten = kas.DrawingMain(textBox2.Text);
            //draw the grid
            drawGreenhouseMap(Coordinaten);
        }
示例#2
0
 private void SetGreenhouse_Click(object sender, EventArgs e)
 {
     //choose greenhouse file
     openFileDialog1.InitialDirectory = @"C:\Users\Daniel\Desktop";
     openFileDialog1.Filter           = "csv files (*.csv) | *.csv";
     openFileDialog1.ShowDialog();
     //checks if there is a file
     if (File.Exists(openFileDialog1.FileName))
     {
         //get the greenhouse data
         DrawGreenhouse kas = new DrawGreenhouse();
         Coordinaten = kas.DrawingMain(openFileDialog1.FileName);
         //draw the grid with the new greenhouse data
         drawGreenhouseMap(Coordinaten);
     }
 }