Ejemplo n.º 1
0
        private void 新建shp文件ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form1     a  = new Form1();
            ShpCreate ab = new ShpCreate();

            ab.Show();
        }
Ejemplo n.º 2
0
        //private void shp文件创立ToolStripMenuItem_Click(object sender, EventArgs e)
        //{
        //    SaveFileDialog sfd = new SaveFileDialog();
        //    sfd.Filter = "文本文件(*.txt)|*.shp|所有文件|*.*";//设置文件类型
        //    sfd.FileName = "po";//设置默认文件名
        //    sfd.DefaultExt = "shp";//设置默认格式(可以不设)
        //    sfd.AddExtension = true;//设置自动在文件名中添加扩展名
        //    if (sfd.ShowDialog() == DialogResult.OK)
        //    {
        //        //txtPath.Text = "FileName:" + sfd.FileName + "\r\n";
        //        using (StreamWriter sw = new StreamWriter(sfd.FileName))
        //        {
        //            sw.WriteLineAsync("今天是个好天气");
        //        }
        //    }
        //   string localFilePath = sfd.FileName.ToString();
        //    MessageBox.Show("ok");
        //}

        private void 创建字段ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ShpCreate SP = new ShpCreate();

            SP.Show();
        }