예제 #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);
            }
        }
예제 #2
0
        public SongNotes(TransportViewModel tvm, QueuedTrack qt)
        {
            InitializeComponent();

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

            snd = (SongNotesData)this.BindingContext;

            SetSongInfo();
        }
예제 #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";
            }
        }