public void mark_all(ExtraOptForms extraOptForms, String type)
        {
            if (type == "install")
            {
                foreach (ListViewItem item in this.availiableMods_listView.Items)
                {
                    BundleMod mod = (BundleMod)item.Tag;
                    if (this.mods_db.InstalledModsListContains(mod) == -1 && (mod.status == BundleMod.ModStatus.NotInstalled))
                    {
                        item.Checked = true;
                        //foreach (var queueitem in mod.ItemQueue)
                        //{
                            //queueitem.toReinstall = true;
                        //}
                        mod.actionStatus = BundleMod.ModActionStatus.Install;
                        this.markupModCollision(mod);

                    }

                }
            }
            else if (type == "reinstall")
            {
                foreach (ListViewItem item in this.availiableMods_listView.Items)
                {
                    BundleMod mod = (BundleMod)item.Tag;
                    if (this.mods_db.InstalledModsListContains(mod) != -1 && mod.status == BundleMod.ModStatus.Installed)
                    {
                        foreach (var queueitem in mod.ItemQueue)
                        {
                            queueitem.toReinstall = true;
                        }
                        mod.actionStatus = BundleMod.ModActionStatus.ForcedReinstall;
                        this.markupModCollision(mod);

                    }

                }
            }
            else if (type == "uninstall")
            {
                foreach (ListViewItem item in this.availiableMods_listView.Items)
                {
                    BundleMod mod = (BundleMod)item.Tag;
                    if (mod.status != BundleMod.ModStatus.NotInstalled)
                    {
                        if (mod.type != BundleMod.ModType.lua)
                        {
                            item.Checked = false;
                        }

                        mod.actionStatus = BundleMod.ModActionStatus.Remove;
                        this.markupModCollision(mod);

                    }

                }
            }
            this.markupinstallModsCollision();
            this.refreshModsListView();
        }
 private void ExtraOptions_OnClick(object sender, EventArgs e)
 {
     ExtraOptForms ExtraOpt = new ExtraOptForms();
     ExtraOpt.ShowDialog(this);
 }