public static List <BoundWithCondition <Point3D> > SetMixedCondition(Parallelepiped bound) { var leftRight = new Pane(); leftRight.Add(bound.LeftPane); leftRight.Add(bound.RightPane); var rest = new Pane(); rest.Add(bound.FrontPane); rest.Add(bound.BackPane); rest.Add(bound.TopPane); rest.Add(bound.BottomPane); return(new List <BoundWithCondition <Point3D> > { new BoundWithCondition <Point3D>(leftRight, ConditionType.Dirichlet, FunctionFactory.G), new BoundWithCondition <Point3D>(rest, ConditionType.Robin, FunctionFactory.G), // new BoundWithCondition<Point3D>(topbottom, ConditionType.Neumann, FunctionFactory.G) }); }
void graphListForm_stackOnCurrentGraph( object sender, EventArgs e ) { GraphForm currentGraphForm = CurrentGraphForm; if( currentGraphForm == null ) throw new Exception( "current graph should not be null" ); GraphItem g = ( ( sender as ToolStripMenuItem ).Owner as ContextMenuStrip ).Tag as GraphItem; Pane pane = new Pane(); pane.Add( g ); currentGraphForm.PaneList.Add( pane ); currentGraphForm.Refresh(); }
void graphListForm_showAsNewGraph( object sender, EventArgs e ) { GraphForm newGraph = OpenGraph( true ); GraphItem g = ( ( sender as ToolStripMenuItem ).Owner as ContextMenuStrip ).Tag as GraphItem; Pane pane = new Pane(); pane.Add( g ); newGraph.PaneList.Add( pane ); newGraph.Refresh(); }
void graphListForm_showAllAsStackOnNewGraph( object sender, EventArgs e ) { List<GraphItem> gList = ( ( sender as ToolStripMenuItem ).Owner as ContextMenuStrip ).Tag as List<GraphItem>; GraphForm newGraph = OpenGraph( true ); foreach( GraphItem g in gList ) { Pane pane = new Pane(); pane.Add( g ); newGraph.PaneList.Add( pane ); } newGraph.Refresh(); }
void graphListForm_showAllAsStackOnCurrentGraph( object sender, EventArgs e ) { GraphForm currentGraphForm = CurrentGraphForm; if( currentGraphForm == null ) throw new Exception( "current graph should not be null" ); List<GraphItem> gList = ( ( sender as ToolStripMenuItem ).Owner as ContextMenuStrip ).Tag as List<GraphItem>; currentGraphForm.PaneList.Clear(); foreach( GraphItem g in gList ) { Pane pane = new Pane(); pane.Add( g ); currentGraphForm.PaneList.Add( pane ); } currentGraphForm.Refresh(); }
private void showDataStacked(GraphForm hostGraph, GraphItem item ) { Pane pane = new Pane(); pane.Add( item ); hostGraph.PaneList.Add( pane ); hostGraph.Refresh(); }
private void SetupPanes() { if( ! panesSetup ) { tabLabelsPane = RootContext.CreateWidget<Pane>(); tabDisplayPane = RootContext.CreateWidget<Pane>(); tabList = RootContext.CreateWidget<HtmlElement>(); tabList.TagName = "ul"; tabLabelsPane.Id = "labels"; tabDisplayPane.Id = "display"; tabLabelsPane.ClassName = "TabLabels"; log.Debug("setting up tab panes, labelclass: ", labelClass ); if( labelClass != null ) tabLabelsPane.AppendClass(labelClass); tabDisplayPane.ClassName = "TabContent"; if ( UseClearFix ) tabDisplayPane.AppendClass("clearfix"); tabLabelsPane.Add(tabList); panesSetup = true; base.Add( tabLabelsPane ); base.Add( tabDisplayPane ); } }