private async void OnAccountAdd(object sender, EventArgs e) { var item = sender as ToolStripMenuItem; if (item == null) { return; } await m_uiService.CreateOrUpdateAccount(((StorageDescriptor)item.Tag).Type); UpdateAccountList(); }