Beispiel #1
0
        private void btnChooseSpatialLite_Click(object sender, EventArgs e)
        {
            string filename;

            if (_fileDialog.OpenFile(DataSourceType.SpatiaLite, out filename))
            {
                txtSpatiaLiteDatabase.Text = filename;
            }
        }
        private void BrowseImage()
        {
            var filepad = _fileDialog.OpenFile("Image Files (*.gif;*.png;*.jpg)|*.gif;*.png;*.jpg");

            if (filepad != null)
            {
                string   appPath  = Environment.CurrentDirectory;
                FileInfo fileInfo = new FileInfo(filepad);
                string   filename = fileInfo.Name;
                string   destPath = Path.Combine(appPath + "\\Images", filename);
                if (!File.Exists(destPath))
                {
                    File.Copy(filepad, destPath);
                }
                SelectedBier.ImagePad = filename;
            }
        }