Exemplo n.º 1
0
        private void WorldMapPointForm_Load(object sender, EventArgs e)
        {
            MapPictureBox.HideCommandBar();
            MapPictureBox.LoadWorldMap();
            MapPictureBox.SetChipSize(1);

            for (uint i = 0; i < WorldMapPathForm.DataCount(); i++)
            {
                List <MapPictureBox.StaticItem> list = WorldMapPathForm.DrawPath(i);
                for (int n = 0; n < list.Count; n++)
                {
                    MapPictureBox.SetStaticItem("road" + i.ToString() + "_" + n.ToString(), list[n].x, list[n].y, list[n].bitmap);
                }
                MapPictureBox.Invalidate();
            }

            //拡張ボタンを表示するかどうか
            if (WorldMapPointForm.IsShowWorldmapPointExetdns(AddressList.Items.Count))
            {
                AddressListExpandsButton_255.Show();
            }
            else
            {
                this.AddressList.Height += AddressListExpandsButton_255.Height;
                AddressListExpandsButton_255.Hide();
            }
        }
Exemplo n.º 2
0
        private void WorldMapEventPointerForm_Load(object sender, EventArgs e)
        {
            //拡張ボタンを表示するかどうか
            uint node_count = WorldMapPointForm.GetDataCount();

            if (WorldMapPointForm.IsShowWorldmapPointExetdns((int)node_count))
            {
                AddressListExpandsButton_255.Show();
                N_AddressListExpandsButton_255.Show();
            }
            else
            {
                this.AddressList.Height += AddressListExpandsButton_255.Height;
                AddressListExpandsButton_255.Hide();

                this.N_AddressList.Height += N_AddressListExpandsButton_255.Height;
                N_AddressListExpandsButton_255.Hide();
            }
        }