mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2026-11-05 15:11:59 +08:00
Implement send mail and mail list
Optimize duplicate code
This commit is contained in:
1 parent
5c7c64ea6c
commit
fd515b18cf
8 files changed
+859
-642
No files matched your search
@@ -193,7 +193,7 @@ namespace GrasscutterTools.Forms
|
||||
private IEnumerable<int> SelectedMonsterIds()
|
||||
{
|
||||
foreach (string item in ListMonsters.SelectedItems)
|
||||
yield return int.Parse(item.Substring(0, item.IndexOf(':')).Trim());
|
||||
yield return ItemMap.ToId(item);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -378,7 +378,7 @@ namespace GrasscutterTools.Forms
|
||||
var dropData = new DropData();
|
||||
|
||||
var item = TxtItem.Text;
|
||||
dropData.ItemId = int.Parse(item.Substring(0, item.IndexOf(':')).Trim());
|
||||
dropData.ItemId = ItemMap.ToId(item);
|
||||
//if (int.TryParse(item.Substring(0, item.IndexOf(':')).Trim(), out int itemId))
|
||||
//{
|
||||
// dropData.ItemId = itemId;
|
||||
|
||||
Reference in new issue
Block a user