Esempio n. 1
0
        //construct
        public ChainChompApplication()
        {
            InitializeComponent();

            if (!Directory.Exists(appDataPath))
            {
                Directory.CreateDirectory(appDataPath);
            }

            if (!Directory.Exists(outputPath))
            {
                Directory.CreateDirectory(outputPath);
            }

            //load library
            ImageEmuLibrary.LoadSettings();
            PopulateComboBoxes();
            if (ImageEmuLibrary.images.Count > 0)
            {
                romImageComboBox.SelectedIndex = 0;
            }

            ChainEditor root = new ChainEditor(chainTab);

            root.removeChainButton.Enabled = false;
            rootTabPage.Controls.Add(root);
            root.ResizeRack(panel1.Height - 136);
        }
Esempio n. 2
0
        private void LibraryWindow_FormClosing(object sender, FormClosingEventArgs e)
        {
            //store lists in static class
            ImageEmuLibrary.emus.Clear();
            ImageEmuLibrary.images.Clear();

            foreach (ListViewItem item in emuListView.Items)
            {
                ImageEmuLibrary.emus.Add(item.Text);
            }

            foreach (ListViewItem item in romImageListView.Items)
            {
                ImageEmuLibrary.images.Add(new string[] { item.Text, item.Tag != null ? item.Tag.ToString() : null });
            }

            //save to disk
            ImageEmuLibrary.SaveSettings();
        }
Esempio n. 3
0
        // QUIT

        private void ChainChompWindow_FormClosing(object sender, FormClosingEventArgs e)
        {
            ImageEmuLibrary.SaveSettings();
        }