Ejemplo n.º 1
0
 public void DelMap(Map map)
 {
     Maps.Remove(map);
 }
Ejemplo n.º 2
0
        private void ShowMapParams(Map map)
        {
            // show map main params
            this.ParamMapType.Text = map.GetType().Name;
            this.ParamMapName.Text = map.MapName;
            this.ParamMapBlend.Text = map.Blend.ToString();
            this.ParamMapHeight.Text = map.Height.ToString("0.00");
            this.ParamMapWidth.Text = map.Width.ToString("0.00");
            this.ParamMapOpacity.Value = (int)Math.Round(map.Opacity);
            this.ParamMapAngle.Angle = map.AngleCW;
            this.ParamMapLeft.Text = map.Left.ToString("0.00");
            this.ParamMapTop.Text = map.Top.ToString("0.00");

            // show map cusom params
            SpecificMapParams.Controls.Clear();
            foreach (KeyValuePair<string, object> param in map.Params)
            {
                System.Windows.Forms.Control Control
                    = (System.Windows.Forms.Control)param.Value;
                Control.Name = param.Key;
                SpecificMapParams.Controls.Add(Control);
            }
        }
Ejemplo n.º 3
0
 public void AddMap(Map map)
 {
     Maps.Add(map);
 }