private void etikete_PreviewKeyDown(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key == Key.Enter) { SelectedTag = (Model.Tag)etikete.SelectedItem; Prikaz.SelectedItem = SelectedTag; Prikaz.ScrollIntoView(Prikaz.SelectedItem); oznakaTag.Text = SelectedTag.label; opisTag.Text = SelectedTag.description; bojaTag.SelectedColor = (Color)ColorConverter.ConvertFromString(SelectedTag.color); } else if (e.Key == Key.F1) { HelpProvider.ShowHelp("EtiketePretraga", this); } }
private void tipoviLokala_PreviewKeyDown(object sender, KeyEventArgs e) { if (e.Key == Key.Enter) { SelectedType = (Model.LokalType)tipoviLokala.SelectedItem; Prikaz.SelectedItem = SelectedType; Prikaz.ScrollIntoView(Prikaz.SelectedItem); oznakaTip.Text = SelectedType.key; imeTip.Text = SelectedType.name; opisTip.Text = SelectedType.description; BitmapSource i = new BitmapImage(SelectedType.image_uri); ikonicaTip.Source = i; } else if (e.Key == Key.F1) { HelpProvider.ShowHelp("TipoviPretraga", this); } }