Ejemplo n.º 1
0
 public MainPage()
 {
     this.InitializeComponent();
     main_sound = new ObservableCollection <Sound>();
     SoundManager.GetSound(main_sound);
     main_icon = SetIcon.GetIcon();
     back_button.Visibility = Visibility.Collapsed;
 }
Ejemplo n.º 2
0
        private void IconMouseUp([NotNull] object sender, [NotNull] MouseButtonEventArgs e)
        {
            Debug.ArgumentNotNull(sender, nameof(sender));
            Debug.ArgumentNotNull(e, nameof(e));

            if (e.ChangedButton != MouseButton.Left)
            {
                return;
            }

            var context = new ContentEditorContext(ContentEditor);

            var command = new SetIcon();

            if (command.CanExecute(context))
            {
                AppHost.Usage.ReportCommand(command, context);
                command.Execute(context);
            }
        }