Ejemplo n.º 1
0
 //添加元素
 private void ElementToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ToolStripMenuItem tool     = sender as ToolStripMenuItem;
     string            menuText = tool.Text;
     CommonMenu        menu     = new CommonMenu(menuText, axPageLayoutControl1, "专题图");
 }
Ejemplo n.º 2
0
        private void btn_ok_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txt_ImageInput.Text))
            {
                //导出图片
                ExportPictureMyself(txt_ImageInput.Text);
                //保存图片到Image下面,以便入库使用
                ToolStripMenuItem tool = Obj_sender as ToolStripMenuItem;
                string menuText = tool.Text;
                CommonMenu menu = new CommonMenu(menuText, pagelayout, "专题图");
                string[] List = layername.Split(new char[] { '_' ,'.'}, StringSplitOptions.RemoveEmptyEntries);

                //根据数据名称选择图片入库方法
                if (List[0] != "SOILNUTRIENT")
                {
                    //OperatePicture.InsertPicture(List);
                  string sExePath = Application.StartupPath + "\\GDALAlgorithm.exe";
                  Process.Start(sExePath, "9_InsertPicture_" + List[0] + "_" + List[1] + "_" + List[2]);
                }
                else
                {
                    //OperatePicture.InsertSoilPicture(List);
                    string sExePath = Application.StartupPath + "\\GDALAlgorithm.exe";
                    Process.Start(sExePath, "10_InsertSoilPicture_" + List[0] + "_" + List[1] + "_" + List[2] + "_" + List[3]);
                }
                MessageBox.Show("图片保存成功!", "提示");
            }
            else
            {
                MessageBox.Show("请选择输路径!", "提示");
            }
        }
Ejemplo n.º 3
0
 //添加元素
 private void ElementToolStripMenuItem_Click(object sender, EventArgs e)
 {
     ToolStripMenuItem tool = sender as ToolStripMenuItem;
     string menuText = tool.Text;
     CommonMenu menu = new CommonMenu(menuText, axPageLayoutControl1, "专题图");
 }