Exemplo n.º 1
0
        private void AddNewCommandExecuted(WorkflowInfo info)
        {
            if (info == null)
            {
                throw new ArgumentNullException("WorkflowInfo不能为空");
            }
            WorkflowUtils.ProcessDatetime(info);
            DiagramPageViewModel vw = new DiagramPageViewModel(info);

            vw.RequestClose += this.Item_RequestClose;
            this.DiagramDataSource.Add(vw);

            this.OnPropertyChanged("DiagramDataSource");
        }
Exemplo n.º 2
0
        /// <summary>
        /// Tab关闭时触发
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Item_RequestClose(object sender, EventArgs e)
        {
            DiagramPageViewModel item = sender as DiagramPageViewModel;

            DiagramDataSource.Remove(item);
        }
Exemplo n.º 3
0
		private void AddNewCommandExecuted(WorkflowInfo info)
		{
			if (info == null) throw new ArgumentNullException("WorkflowInfo不能为空");
			WorkflowUtils.ProcessDatetime(info);
			DiagramPageViewModel vw = new DiagramPageViewModel(info);

			vw.RequestClose += this.Item_RequestClose;
			this.DiagramDataSource.Add(vw);

			this.OnPropertyChanged("DiagramDataSource");
		}