public void testExceptionEditItem() { Storyboard groupEm = new Storyboard(); groupEm.EditItem(null); }
public void testExceptionAddItem() { Storyboard groupEm = new Storyboard(); // groupEm.AllowDrop = false; groupEm.AddItem("test", "test", 0,""); }
public void testExceptionDeleteItem() { Storyboard groupEm = new Storyboard(); groupEm.DeleteItem(null); }
protected override void DoBuildChildren(LayoutPanelBase Layout) { base.DoBuildChildren (Layout); CaptionLabel.Dock = DockStyle.Top; StoryBoard = new Storyboard(); StoryBoard.Dock = DockStyle.Fill; ParentNotePanel.Controls.Add (StoryBoard); StoryBoard.BringToFront(); StoryBoard.Enter+= (object sender, EventArgs e) => BringToFrontAndShow();; StoryBoard.FactMode(this.Factmode); // // //moved to end to handle refersh issues StoryBoard.Source = this.GuidForNote;//((NotePanelStoryboard)note).groupEms1.Source = note.appearance.GUID; // We do not need to call the SetTable function because this is handled when a table isc reated StoryBoard.StickyTable = this.Layout.GetLinkTable(); StoryBoard.NeedSave += HandleNeedSave; StoryBoard.ViewStyle = this.ViewStyle; /*here*/ if (this.Storyboard_ShowPreview == true) { StoryBoard.ShowPreview(); } if (this.Storyboard_SplitterSetting > 0) { // make it run through autmoated test if (true == StoryBoard.Visible ) { StoryBoard.SplitterPosition = this.Storyboard_SplitterSetting; } } StoryBoard.GetNoteForGroupEmPreview += HandleGetNoteForGroupEmPreview; StoryBoard.GroupNameTruncateLength = 15; StoryBoard.ShowToolbar = true; StoryBoard.AddItemFromMenu += HandleAddItemFromMenu; StoryBoard.ClickItem += HandleStoryBoardClickItem; StoryBoard.InitializeGroupEmFromExternal(); // trying to get htis to work better LayoutDetails.Instance.UpdateAfterLoadList.Add (this); // will not add these unless I NEED them (I'm assuming some of this is for selecting things? // ((NotePanelStoryboard)note).groupEms1.DragNote += new GroupEm.groupEms.CustomEventHandler2(groupEms1_DragNote); // ((NotePanelStoryboard)note).groupEms1.listView.MouseDown += new MouseEventHandler(listView_MouseDown); // ((NotePanelStoryboard)note).groupEms1.listView.onScroll += new ScrollEventHandler(listView_onScroll); // ((NotePanelStoryboard)note).groupEms1.listView.MouseDown += findBar_MouseDown; // }