Example #1
0
        /// <summary>
        /// Constructor
        /// <para>Initialises TapGestureRecognizers and binds them to the menu points.</para>
        /// </summary>
        public MainPage()
        {
            InitializeComponent();

            List <ItemModel> functions = new List <ItemModel>()
            {
                //Funktionen
                new ItemModel("Network Testing", new pgNetworkTesting()),
                new ItemModel("Audio Recording", new pgAudioRecording()),
            };
            List <ItemModel> songs = new List <ItemModel>()
            {
                //Lieder
                new ItemModel("Note Test", new pgSongPage_Template("NoteTest")),
                new ItemModel("Chord Test", new pgSongPage_Template("ChordTest")),
                new ItemModel("Trumpet Test", new pgSongPage_Template("TrumpetTest")),
                new ItemModel("Static Test", new pgSongPage_Template("StaticTest")),
                new ItemModel("Noten Lang", new pgSongPage_Template("NotenLang")),
                new ItemModel("Akkorde Lang", new pgSongPage_Template("AkkordeLang")),
                new ItemModel("Noten Kurz", new pgSongPage_Template("NotenKurz")),
                new ItemModel("Akkorde Kurz", new pgSongPage_Template("AkkordeKurz")),
            };

            lvFunctions.ItemsSource = functions;
            lvContainer.ItemsSource = songs;

            Logger.Log("########### New Startup ############");
            ConfigFileHelper.InitConfigFile();
        }
Example #2
0
        /// <summary>
        /// Event that is called when the user clicks the "GetPermissions"-Button. Forces a new request for all permissions.
        /// </summary>
        /// <param name="sender">Button that invoked the event</param>
        /// <param name="e">Eventarguments</param>
        private void OnGetPermissionsClicked(object sender, EventArgs e)
        {
            PermissionHelper.AskForAllPermissions();

            ConfigFileHelper.InitConfigFile();
        }