Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();

            dialog.RestoreDirectory = true;
            dialog.Filter           =
                "Plugin Files (*.dll,*.grg)|" +
                "*.dll;*.grg;";
            dialog.Title       = "Please Select The Plugin You wish to add";
            dialog.Multiselect = true;



            if (dialog.ShowDialog() == DialogResult.OK)
            {
                for (int i = 0; i < dialog.FileNames.Length; i++)
                {
                    pluginholder temp = new pluginholder(dialog.FileNames[i]);

                    dict.Add(temp);
                    checkedListBox1.Items.Add(temp.getName(), true);
                    saveData();
                }
            }
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            OpenFileDialog dialog = new OpenFileDialog();
            dialog.RestoreDirectory = true;
            dialog.Filter =
                "Plugin Files (*.dll,*.grg)|" +
                "*.dll;*.grg;";
            dialog.Title = "Please Select The Plugin You wish to add";
            dialog.Multiselect = true;

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                for (int i = 0; i < dialog.FileNames.Length; i++)
                {
                    pluginholder temp = new pluginholder(dialog.FileNames[i]);

                    dict.Add(temp);
                    checkedListBox1.Items.Add(temp.getName(),true);
                    saveData();
                }

            }
        }