Ejemplo n.º 1
0
        public virtual void Init(AddFileViewModel model, string Filter, bool isShowSelect = false, Visibility SelectDirIsShow = Visibility.Visible)
        {
            this.model       = model;
            this.DataContext = model;
            addFilePagerPage.SetPagerPage(model.Files, FileNameCustom.GetFieldCustoms(), true, isShowSelect);
            this.Filter = Filter;
            pagerPageGrid.Children.Add(addFilePagerPage);
            selectDirStackPanel.Visibility = SelectDirIsShow;
            addFilePagerPage.HideFloot();

            ContextMenu menu = new ContextMenu();
            MenuItem    taskAllocationMenu = new MenuItem();

            taskAllocationMenu.Header = "打开文件";
            taskAllocationMenu.Click += OpenFile_Click;
            menu.Items.Add(taskAllocationMenu);

            addFilePagerPage.ContextMenu = menu;
        }
Ejemplo n.º 2
0
 private void ExportTable_Click(object sender, RoutedEventArgs e)
 {
     AddFileViewModel addFileViewModel = new AddFileViewModel();
 }