/// <summary> /// button按钮的事件动作 /// </summary> /// <param name="param"></param> public void EventAction(string param) { switch (param) { case "btnsearch": Books book = new Books() { BookCategory = CategoryId, BarCode = BookBarcode, BookName = BookName }; SearchBookInfo(book); break; case "btndelete": //todo break; case "btnclosefrm": IRegionmanager.RequestNavigate("MainRegion", "MainPage"); break; case "btnselectpic": //todo SelectPic(); break; case "btnsavemodify": //todo Books books = new Books() { BookName = this.BookNames, BookCategory = this.BookCategory, PublisherId = this.PublisherId, PublishDate = this.PublishDate, Author = this.Author, UnitPrice = Convert.ToDecimal(this.UnitPrice), BookPosition = this.BookPosition, BookImage = Imagetobase64, BookId = this.BookId, }; SaveModifyBook(books); break; } }
public void SkipTargetPage(string param) { switch (param) { case "btnStartcamera": //todo break; case "btnclosecamera": //todo break; case "btnstartpic": //todo break; case "btnclearpic": //todo foreach (var item in imagelist) { if (item.Name == "selectbookimage") { BookImage = string.Empty; } } break; case "btnselectpic": //todo SelectPic(); break; case "btnconfirmadd": //todo ConfirmAdd(); break; case "btnclosefrm": //todo IRegionmanager.RequestNavigate("MainRegion", "MainPage"); //返回主页 break; } }
public void SkipTargetPage(string param) { switch (param) { case "addbook": //todo IRegionmanager.RequestNavigate("MainRegion", "FrmAddBook/AddBook"); break; case "bookshelves": //todo break; case "bookmaintain": //todo IRegionmanager.RequestNavigate("MainRegion", "FrmBookMaintain/FrmBookMaintain"); break; case "membermanager": //todo IRegionmanager.RequestNavigate("MainRegion", "FrmMemberManager/FrmMemberManager"); break; case "bookborrow": //todo break; case "bookreturn": //todo break; case "modifypwd": //todo break; case "closefrm": //todo break; } }