public Network INetwork() { ImageBasedGridNetwork network = new ImageBasedGridNetwork(); network.Initialize(filename.Text, (int)subdivisions.Value); return network; }