Exemplo n.º 1
0
        void FnMenuSelected(string strMenuSeleted)
        {
            switch (strMenuSeleted)
            {
            case "Home":
                // txtActionBarText1.Text = "Note";
                ViewController noteController = this.Storyboard.InstantiateViewController("ViewController") as ViewController;
                this.NavigationController.PushViewController(noteController, false);
                break;

            case "Note":
                // txtActionBarText1.Text = "New Note";

                CreateNoteViewController createnoteController = this.Storyboard.InstantiateViewController("CreateNoteViewController") as CreateNoteViewController;
                this.NavigationController.PushViewController(createnoteController, false);
                break;

            case "Trash":
                //  txtActionBarText1.Text = "Deleted Note";

                // this.NavigationController.PopViewController(false);

                break;

            case "Theme":
                // txtActionBarText1.Text = "Change Theme";
                break;
            }
            // txtActionBarText.Text = "I always";// strMenuSeleted;
            FnSwipeRightToLeft();
        }
        void OpenCreatenoteScreen()
        {
            this.NavigationController.SetNavigationBarHidden(true, false);
            CreateNoteViewController createnoteController = this.Storyboard.InstantiateViewController("CreateNoteViewController") as CreateNoteViewController;

            createnoteController.update_new = -99;

            this.NavigationController.PushViewController(createnoteController, true);
        }
        public override void ItemSelected(UICollectionView collectionView, NSIndexPath indexPath)
        {
            this.navigationController.SetNavigationBarHidden(true, false);
            CreateNoteViewController createnoteController = this.storyboard.InstantiateViewController("CreateNoteViewController") as CreateNoteViewController;

            createnoteController.update_new  = -100;
            createnoteController.createdTask = _filteredTasks[indexPath.Row];

            this.navigationController.PushViewController(createnoteController, true);

            collectionView.DeselectItem(indexPath, true);
        }
Exemplo n.º 4
0
        public override void RowSelected(UITableView tableView, NSIndexPath indexPath)
        {
            this.navigationController.SetNavigationBarHidden(true, false);
            CreateNoteViewController createnoteController = this.storyboard.InstantiateViewController("CreateNoteViewController") as CreateNoteViewController;

            //  createnoteController.createdTask = _newDataTasks[indexPath.Row];
            createnoteController.createdTask = _filteredTasks[indexPath.Row];
            createnoteController.update_new  = -100;

            this.navigationController.PushViewController(createnoteController, true);

            tableView.DeselectRow(indexPath, true);
        }
        void FnMenuSelected(string strMenuSeleted)
        {
            switch (strMenuSeleted)
            {
            case "Home":
                // txtActionBarText.Text = "Note";

                break;

            case "Note":
                // txtActionBarText.Text = "New Note";

                this.NavigationController.SetNavigationBarHidden(true, false);
                CreateNoteViewController createnoteController = this.Storyboard.InstantiateViewController("CreateNoteViewController") as CreateNoteViewController;

                createnoteController.update_new = -99;

                this.NavigationController.PushViewController(createnoteController, true);


                break;

            case "Trash":
                // txtActionBarText.Text = "Deleted Note";

                this.NavigationController.SetNavigationBarHidden(true, false);
                Trash_Controler trashController = this.Storyboard.InstantiateViewController("Trash_Controler") as Trash_Controler;
                this.NavigationController.PushViewController(trashController, true);

                break;

            case "Theme":
                // txtActionBarText.Text = "Change Theme";
                break;
            }

            FnSwipeRightToLeft();
        }