Ejemplo n.º 1
0
        private void btnViewSheet_Click(object sender, RoutedEventArgs e)
        {
            CCBCharacter curCharacter = FindCurrentCharacter();

            if (null == curCharacter)
            {
                tbLastError.Text = "No character selected";
            }
            else
            {
                CharacterSheetWnd sheet = new CharacterSheetWnd(curCharacter);

                sheet.Show(this);
            }
        }
Ejemplo n.º 2
0
        private void OnObjectClicked(object sender, RoutedEventArgs e)
        {
            try
            {
                Hyperlink    hl        = (Hyperlink)sender;
                string       name      = hl.CommandParameter.ToString();
                CCBCharacter character = m_charactersReceived.FindSafe(name);

                if (null == character)
                {
                    AddChatText(string.Format("'{0}' not found.", name));
                }
                else
                {
                    CharacterSheetWnd characterWnd = new CharacterSheetWnd(character);

                    characterWnd.Show(this);
                }
            }
            catch (Exception ex)
            {
                CCBLogConfig.GetLogger().Log("OnObjectClicked: " + ex.Message);
            }
        }