public override void RowSelected(UITableView tableView, NSIndexPath indexPath) { switch (indexPath.Row) { case 0: NotesController notes = new NotesController(); this.NavigationController.PushViewController(notes, true); break; case 1: LibraryControllerTable pdf = new LibraryControllerTable(); this.NavigationController.PushViewController(pdf, true); break; case 2: PhotosController photo_video = new PhotosController(); this.NavigationController.PushViewController(photo_video, true); break; case 3: WordController password = new WordController(); this.NavigationController.PushViewController(password, true); break; case 4: PasswordNotes music = new PasswordNotes(); this.NavigationController.PushViewController(music, true); break; default: Console.WriteLine("Music controlelr played here"); break; } tableView.DeselectRow(indexPath, true); }
public override void ViewDidLoad() { this.searchForText.SearchButtonClicked += (object sender, EventArgs e) => { this.searchForText.ResignFirstResponder(); }; this.appDelegate.PDF = this; this.NavigationItem.Title = "Viewer"; this.pdfWebReader.Frame = new CGRect(0, 50, UIScreen.MainScreen.Bounds.Width, UIScreen.MainScreen.Bounds.Height - 50.0f); LibraryControllerTable library = new LibraryControllerTable(); WordController wordDoc = new WordController(); var directory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); var filePath = Path.Combine(directory, appDelegate.pdfString); NSUrl urlFile = NSUrl.FromFilename(filePath); NSUrlRequest pdfToLoad = new NSUrlRequest(urlFile, NSUrlRequestCachePolicy.ReloadIgnoringLocalAndRemoteCacheData, 0.1f); this.pdfWebReader.LoadRequest(pdfToLoad); this.pdfWebReader.ScalesPageToFit = true; this.pdfWebReader.DataDetectorTypes = UIDataDetectorType.All; this.View.AddSubview(this.pdfWebReader); }
public searchUpdatorWord(WordController searchValue) { search = searchValue; }