Beispiel #1
0
        public ActionResult BugManagement(int id)
        {
            _currentProjectId = id;
            var model = new BugListViewModel(id);

            return(View(model));
        }
 public DetailPage()
 {
     InitializeComponent();
     BindingContext = new BugListViewModel
     {
         Image       = "https://i.imgur.com/wrGW7Dz.jpg",
         insectMatch = "Match: Beetle",
         isPest      = "Pest: Yes"
     };
 }
        async void moreInfoBtn_Clicked(object sender, EventArgs e)
        {
            var contact = new BugListViewModel
            {
                Image = "https://i.imgur.com/wrGW7Dz.jpg"
            };
            var secondPage = new NoteEntryPage();

            secondPage.BindingContext = contact;
            await Navigation.PushAsync(secondPage);
        }
        // public Item Item { get; set; }

        public NewItemPage()
        {
            InitializeComponent();

            var Item = new BugListViewModel()
            {
                Name        = "Item name",
                Description = "This is an item description."
            };

            BindingContext = this;
        }
        async void OnSaveButtonClicked(object sender, EventArgs e)
        {
            var note  = (BugListViewModel)BindingContext;
            var notes = new List <BugListViewModel>();

            var filename = Path.Combine(App.FolderPath, $"{Path.GetRandomFileName()}.notes.txt");


            File.WriteAllText(filename, note.Name);

            var contact = new BugListViewModel
            {
                Image = "https://i.imgur.com/wrGW7Dz.jpg"
            };
            var secondPage = new MainPage();

            secondPage.BindingContext = contact;


            await Navigation.PushAsync(new MainPage());
        }
Beispiel #6
0
 public BugListPage()
 {
     InitializeComponent();
     BindingContext = model = new BugListViewModel();
 }
Beispiel #7
0
 public ActionResult BugManagement(BugListViewModel model)
 {
     return(View());
 }