/[MorrowindCustomClothingSlotCreator]/trunk/MorrowindCustomClothingSlotCreator/Form1.cs
ViewVC logotype

Diff of /trunk/MorrowindCustomClothingSlotCreator/Form1.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by william, Fri Jul 29 09:23:17 2011 UTC revision 23 by william, Fri Jul 29 18:35:02 2011 UTC
# Line 30  namespace MorrowindCustomClothingSlotCre Line 30  namespace MorrowindCustomClothingSlotCre
30    
31              if (loaded)              if (loaded)
32              {              {
33                    foreach (ClothingEntry entry in this.TES3PluginLoader.ClothingSection.ClothingEntries)
34                    {
35                        lstClothingEntries.Items.Add(entry.CLOT_NAME);
36                    }
37                  MessageBox.Show("Successfully Loaded Plugin: " + pluginFile, "Successfully Loaded File:", MessageBoxButtons.OK, MessageBoxIcon.Information);                  MessageBox.Show("Successfully Loaded Plugin: " + pluginFile, "Successfully Loaded File:", MessageBoxButtons.OK, MessageBoxIcon.Information);
38              }              }
39    
# Line 44  namespace MorrowindCustomClothingSlotCre Line 48  namespace MorrowindCustomClothingSlotCre
48    
49          private void mnuItemOpenPlugin_Click(object sender, EventArgs e)          private void mnuItemOpenPlugin_Click(object sender, EventArgs e)
50          {          {
51                this.log.Clear();
52              PluginLoader.InitialDirectory = MorrowindDataFilesPath;              PluginLoader.InitialDirectory = MorrowindDataFilesPath;
53              DialogResult result = PluginLoader.ShowDialog();              DialogResult result = PluginLoader.ShowDialog();
54              string PluginFile = PluginLoader.FileName;              string PluginFile = PluginLoader.FileName;
55              if (result != DialogResult.OK) return;              if (result != DialogResult.OK) return;
56              //MessageBox.Show("Load Plugin: " + PluginLoader.FileName);              //MessageBox.Show("Load Plugin: " + PluginLoader.FileName);
57              this.TES3PluginLoader = new TES3PluginLoader(PluginFile);              this.TES3PluginLoader = new TES3PluginLoader(PluginFile, this.log);
58              if (!this.LoadPlugin(PluginFile))              if (!this.LoadPlugin(PluginFile))
59              {              {
60                  MessageBox.Show("Failed to Load Plugin: " + PluginFile + "\n\nReason: \n\n" + this.TES3PluginLoader.PluginLoadFailureReason, "Failed to Load File:", MessageBoxButtons.OK, MessageBoxIcon.Error);                  MessageBox.Show("Failed to Load Plugin: " + PluginFile + "\n\nReason: \n\n" + this.TES3PluginLoader.PluginLoadFailureReason, "Failed to Load File:", MessageBoxButtons.OK, MessageBoxIcon.Error);
61              }              }
62          }          }
63    
64            private void lstClothingEntries_SelectedIndexChanged(object sender, EventArgs e)
65            {
66    
67            }
68      }      }
69  }  }

Legend:
Removed from v.4  
changed lines
  Added in v.23

  ViewVC Help
Powered by ViewVC 1.1.22