Esempio n. 1
0
        public static void Show(FrameworkElement Owner, UInt64 taskid, List <TaskFileDetailInfo> list)
        {
            TransFromDetailInfo wid = new TransFromDetailInfo(Owner, taskid, list);

            wid.ShowDialog();
            return;
        }
Esempio n. 2
0
        public TransFromDetailInfo(FrameworkElement Owner, UInt64 taskid, List <TaskFileDetailInfo> List)
        {
            InitializeComponent();
            This   = this;
            Taskid = taskid;

            Window pwin = Window.GetWindow(Owner);

            this.Owner = pwin;
            this.WindowStartupLocation = WindowStartupLocation.CenterOwner;

            dcContent = TaskFileDetailInfoCollect.GetInstance();
            ObservableCollection <TaskFileDetailInfo> infocollection = new ObservableCollection <TaskFileDetailInfo>(List);

            dcContent.Collection       = infocollection;
            FileDetailList.DataContext = dcContent;
            FileDetailList.ItemsSource = dcContent.Collection.ToList();

            dispatcherTimer.Tick    += new EventHandler(DispatcherTimerTick);
            dispatcherTimer.Interval = new TimeSpan(0, 0, 1);
            dispatcherTimer.Start();
        }
Esempio n. 3
0
 public static void Show(this FrameworkElement Owner, UInt64 taskid, List <TaskFileDetailInfo> list)
 {
     TransFromDetailInfo.Show(Owner, taskid, list);
 }