Example #1
0
        public void SetParameter(String key, Object parameter)
        {
            switch (key)
            {
            case "Credential":
            {
                _credential = (Credential)parameter;
                GlyphKeyConverter converter = new GlyphKeyConverter();
                Glyph             glyph     = (Glyph)converter.Convert(Credential.GlyphKey, typeof(Glyph), null, null);
                SelectGlyph(glyph);
                break;
            }

            case "SelectedGlyph":
            {
                SelectGlyph((Glyph)parameter);
                break;
            }

            case "Mode":
            {
                _credentialEditorMode = (CreateCredentialViewModel.EditorMode)parameter;
                break;
            }
            }
        }
Example #2
0
        public void SetParameter(String key, Object parameter)
        {
            switch (key)
            {
            case "Credential":
            {
                _credential = (Credential)parameter;
                break;
            }

            case "Mode":
            {
                _credentialEditorMode = (CreateCredentialViewModel.EditorMode)parameter;
                break;
            }
            }
        }