Esempio n. 1
0
        public NodeVisualiser()
        {
            Visualiser = this;

            InitializeComponent();
            zoneBindingSource.DataSource     = World.Data.Zones;
            gameNodeBindingSource.DataSource = World.Data.Nodes;
            targetBindingSource.DataSource   = World.Data.Nodes;
            vsbMap.Minimum = 0;
            vsbMap.Maximum = pbMap.Height;
            hsbMap.Minimum = 0;
            hsbMap.Maximum = pbMap.Width;
        }
Esempio n. 2
0
        public NodeVisualiser(Zone zone, GameNode currentNode) : this()
        {
            Visualiser = this;

            _sysEvent = true;
            try
            {
                _zone                     = zone;
                rbWorld.Checked           = (zone == null);
                rbZone.Checked            = !rbWorld.Checked;
                zoneComboBox.SelectedItem = zone;
                if (currentNode != null)
                {
                    cbSelected.SelectedItem = currentNode;
                }
                DisplayMap();
            }
            finally
            {
                _sysEvent = false;
            }
        }
Esempio n. 3
0
 private void NodeVisualiser_FormClosed(object sender, FormClosedEventArgs e)
 {
     NodeVisualiser.Visualiser = null;
 }