Example #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            TextBoxItemText.Text = Item.Text;

            if (Item.Sound != null)
            {
                TextBoxSound.Text       = Item.Sound.File;
                SliderSoundVolume.Value = Item.Sound.Volume;
            }
            if (Item.Notification != null)
            {
                Notification = Item.Notification;
            }

            if (Item.Keys.Count > 0)
            {
                foreach (string key in Item.Keys)
                {
                    TextBoxShortcut.Text += key + "\r\n";
                }
                TextBoxShortcut.Text = TextBoxShortcut.Text.Remove(TextBoxShortcut.Text.Length - 2, 2);
            }

            TextBoxItemText.Focus();
            TextBoxItemText.SelectAll();
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            TextBoxItemText.Text = Submenu.Text;

            TextBoxItemText.Focus();
            TextBoxItemText.SelectAll();
        }