protected void OnMenuOpen(object source, EventArgs e) { MpeSkinBrowserDialog f = new MpeSkinBrowserDialog(MpeSkinBrowserMode.Open); DialogResult result = f.ShowDialog(this); if (result == DialogResult.OK) { OpenSkin(f.SelectedSkinDir); } }
protected void OnMenuNew(object source, EventArgs e) { MpeSkinBrowserDialog f = new MpeSkinBrowserDialog(); DialogResult result = f.ShowDialog(this); if (result == DialogResult.OK) { try { DirectoryInfo skinDir = f.NewSkinDir; skinDir.Create(); MpeLog.Info("Creating new skin [" + skinDir.FullName + "]"); CopyFiles(f.SelectedSkinDir, skinDir); skinDir.Refresh(); MpeLog.Info("Created new skin [" + skinDir.Name + "]"); OpenSkin(skinDir); } catch (Exception ee) { MessageBox.Show(this, ee.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } } }