Implement send mail and mail list

Optimize duplicate code
This commit is contained in:
jie65535 committed 2022-10-28 00:22:15 +08:00
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;