public async void CmdLoginLogout(MouseEventArgs e, string ElementID) { if (LocalData.LoginLogout.Equals("Login")) { LocalFunctions.DisplayModal(ModalForm.Login); } else { SizeInt s = new SizeInt(); PointInt p = new PointInt(); p.Y = (int)(await BTodosJsInterop.GetElementActualTop(ElementID)); p.X = (int)(await BTodosJsInterop.GetElementActualLeft(ElementID)); s.W = (int)(await BTodosJsInterop.GetElementActualWidth(ElementID)); s.H = (int)(await BTodosJsInterop.GetElementActualHeight(ElementID)); p.Y += s.H; LocalFunctions.ContextMenu_DisplayLogout(p); } }