Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void addNewInstanceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            using (var fbd = new FolderBrowserDialog())
            {
                DialogResult result = fbd.ShowDialog();

                if (result == DialogResult.OK && !string.IsNullOrWhiteSpace(fbd.SelectedPath))
                {
                    string version;
                    if (CemuFeatures.IsCemuFolder(fbd.SelectedPath, out version))
                    {
                        FileManager.AddInstalledVersion(model, fbd.SelectedPath, version);
                        CemuFeatures.UpdateFeaturesForInstalledVersions(model);
                        PopulateList();
                    }
                }
            }
        }