Example #1
0
        private void ScrapeFolder_Click(object sender, RoutedEventArgs e)
        {
            var    page        = PageHandler.GetPageByType <ScrapFolderView>();
            Button bt          = (Button)sender;
            var    ftpItmListM = (FtpListItemModel)bt.DataContext;

            ((ScrapFolderViewModel)page.ViewModel).FtpListItem = ftpItmListM;
            PageHandler.Instance.SetPage <ScrapFolderView>();
        }
Example #2
0
        private void EditFile_Click(object sender, RoutedEventArgs e)
        {
            var button      = (Button)sender;
            var par         = button.Parent;
            var ftpItmListM = (FtpListItemModel)button.DataContext;
            var notPad      = (NotePad)PageHandler.GetPageByType <NotePad>();

            notPad.LoadTextPath(ftpItmListM.FullName, ftpItmListM.Name);
            PageHandler.SelectedPage <NotePad>();
        }