Ejemplo n.º 1
0
 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);
   }
 }
Ejemplo n.º 2
0
 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;
     }
   }
 }