Example #1
0
        private void لایهToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //PartManager Add Lyer Button
            NewLayerForm nlf = new NewLayerForm(sequence.partMan);

            nlf.ShowDialog();
        }
Example #2
0
        private void 新規レイヤーToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var fm6 = new NewLayerForm();

            fm6.SetLang();
            fm6.LayerName = layer + layers.Count;
            if (fm6.ShowDialog() == DialogResult.OK)
            {
                var ld = CreateLayerDisplay(fm6.LayerName);
                AddLayerToPanel(ld);
                ContentChanged();
            }
        }
 public static void CreateLayer()
 {
     using (var form = new NewLayerForm())
     {
         if (form.ShowDialog(App.Instance as Form) == DialogResult.OK)
         {
             var sf = form.Shapefile;
             sf.GeoProjection.CopyFrom(App.Map.GeoProjection);
             sf.Save();
             int handle = App.Legend.Layers.Add(sf, true);
             App.Map.set_LayerName(handle, Path.GetFileName(sf.Filename));
         }
     }
 }