public void HandleLogOutMenuItemClicked() { var contentText = Translator.GetTranslation("Menu.LogOutWindowDialog.ContentText"); var yesButtonText = Translator.GetTranslation("Menu.ExitWindowDialog.YesButtonText"); var noButtonText = Translator.GetTranslation("Menu.ExitWindowDialog.NoButtonText"); MainCanvas.ShowDialogWindow( contentText, yesButtonText, () => { MainCanvas.LogOutUser(); this.DrawIn(); }, "#FF0266", noButtonText, () => { this.DrawIn(); }, "#41ABAB"); }