/[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 17 by william, Fri Jul 29 16:09:53 2011 UTC revision 31 by william, Sat Jul 30 09:16:04 2011 UTC
# Line 30  namespace MorrowindCustomClothingSlotCre Line 30  namespace MorrowindCustomClothingSlotCre
30    
31              if (loaded)              if (loaded)
32              {              {
33                    foreach (KeyValuePair<string,ClothingEntry> entry in this.TES3PluginLoader.ClothingSection.ClothingEntries)
34                    {
35                        lstClothingEntries.Items.Add(entry.Key);
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 56  namespace MorrowindCustomClothingSlotCre Line 60  namespace MorrowindCustomClothingSlotCre
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                ClothingEntry chosen_entry = null;
67    
68                foreach (KeyValuePair<string, ClothingEntry> entry in this.TES3PluginLoader.ClothingSection.ClothingEntries)
69                {
70                    string key = lstClothingEntries.Items[lstClothingEntries.SelectedIndex].ToString();
71                    if (key == entry.Key) { chosen_entry = entry.Value; break; }
72                }
73                if (chosen_entry == null) return;
74            }
75      }      }
76  }  }

Legend:
Removed from v.17  
changed lines
  Added in v.31

  ViewVC Help
Powered by ViewVC 1.1.22