Пример #1
0
 private void ToolStripMenuItemEdit_Click(object sender, EventArgs e)
 {
     if (listViewDiscordWebhooks.SelectedItems.Count > 0)
     {
         ListViewItem selected = listViewDiscordWebhooks.SelectedItems[0];
         int.TryParse(selected.Name, out int reservedId);
         (_disposable = new FormEditDiscordWebhook(this, allWebhooks[reservedId], reservedId)).Show();
     }
 }
Пример #2
0
 private void ButtonAddNew_Click(object sender, EventArgs e)
 {
     webhookIdsKey++;
     (_disposable = new FormEditDiscordWebhook(this, null, webhookIdsKey)).Show();
 }
Пример #3
0
 private void ToolStripMenuItemAdd_Click(object sender, EventArgs e)
 {
     webhookIdsKey++;
     (_disposable = new FormEditDiscordWebhook(this, null, webhookIdsKey)).Show();
 }