Exemplo n.º 1
0
        public MainPage()
        {
            TransportVMInstance = new TransportViewModel();
            TransportVMInstance.ErrorCallbackRoutine = ErrorCallbackMsg;
            this.BindingContext = TransportVMInstance;

            try
            {
                InitializeComponent();

                Analytics.TrackEvent("Started");
            }
            catch (Exception ex)
            {
                Crashes.TrackError(ex);
                Debug.Print(ex.ToString());
            }

            if (DesignMode.IsDesignModeEnabled)
            {
            }
            else
            {
                NavigationPage.SetHasNavigationBar(this, false);
            }
        }
Exemplo n.º 2
0
        public SongNotes(TransportViewModel tvm, QueuedTrack qt)
        {
            InitializeComponent();

            this.qt  = qt;
            this.tvm = tvm;

            snd = (SongNotesData)this.BindingContext;

            SetSongInfo();
        }
Exemplo n.º 3
0
        public AddSongs(TransportViewModel tvm)
        {
            InitializeComponent();

            this.tvm            = tvm;
            this.BindingContext = this.tvm;

            SelectedTracks.ItemsSource = tvm.Playlist;

            ppd = new BusyBarViewModel();
            BusyBar.BindingContext = ppd;

            Projects.ItemsSource = LoadedTracks;

            if (DesignMode.IsDesignModeEnabled)
            {
                ppd.BusyText = "Something here";
            }
        }