Exemplo n.º 1
0
        private void AddImages()
        {
            fgeimages = new List <FGEImage>();
            string datapath = Path.Combine(Tools.GetAppDataDirectory(), "Maps");

            if (Directory.Exists(datapath))
            {
                fgeimages = FGEImage.LoadImages(datapath);
                fgeimages.AddRange(FGEImage.LoadFixedImages(datapath));
            }
        }
Exemplo n.º 2
0
        private void LoadMapImages()
        {
            string datapath = System.IO.Path.Combine(Tools.GetAppDataDirectory(), "Maps");

            if (System.IO.Directory.Exists(datapath))
            {
                fgeimages = FGEImage.LoadImages(datapath);
                fgeimages.AddRange(FGEImage.LoadFixedImages(datapath));
            }

            dropdownMapNames.DropDownItems.Clear();

            foreach (var img in fgeimages)
            {
                var item = new ToolStripButton {
                    Text         = img.FileName,
                    CheckOnClick = true,
                    DisplayStyle = ToolStripItemDisplayStyle.Text,
                    Tag          = img
                };
                item.Click += new EventHandler(dropdownMapNames_DropDownItemClicked);
                dropdownMapNames.DropDownItems.Add(item);
            }
        }
Exemplo n.º 3
0
 private void LoadImages(string datapath)
 {
     fgeimages = FGEImage.LoadImages(datapath);
 }