public FlowNode(IContainer container, FlowNodeType at) : this() { _container = container; editType = PageEditType.Add; this.HisRunModel = at; System.Windows.Browser.HtmlPage.Document.AttachEvent("oncontextmenu", OnContextMenu); this.Name = FK_Flow; _doubleClickTimer = new System.Windows.Threading.DispatcherTimer(); _doubleClickTimer.Interval = new TimeSpan(0, 0, 0, 0, SystemConst.DoubleClickTime); _doubleClickTimer.Tick += new EventHandler(DoubleClick_Timer); sbDisplay.Begin(); }
public Activity(IContainer container, ActivityType at, double _fontsize) { InitializeComponent(); _container = container; editType = PageEditType.Add; this.Type = at; this.sdPicture.FontSize = _fontsize; //this.Name = UniqueID; _doubleClickTimer = new System.Windows.Threading.DispatcherTimer(); _doubleClickTimer.Interval = new TimeSpan(0, 0, 0, 0, 400); _doubleClickTimer.Tick += new EventHandler(DoubleClick_Timer); Storyboard story = (Storyboard)containerUI.FindResource("sbDisplay"); story.Begin(); }