public DayViewEnsamble (string name) : base(name, SplitOrientation.Vertical, -defaultMonthCalendarWidth) { Menu = new GuiMenuItem (name + "menu", "Schedule"); Menu.AddChild ("Today", "Today", (char)FontAwesomeIcons.fa_calendar_check_o); Menu.AddSeparator (); Menu.AddChild ("AddColumn", "Add Column", (char)FontAwesomeIcons.fa_calendar_plus_o); Menu.AddChild ("RemoveColumn", "Remove Column", (char)FontAwesomeIcons.fa_calendar_minus_o); Menu.AddSeparator (); Menu.AddChild ("SplitView", "Split View").SetChecked(false).ShowOnToolbar(); Menu.AddChild ("Sidebar", "Sidebar").SetChecked(false).ShowOnToolbar(); Menu.AddChild ("Toolbar", "Toolbar").SetChecked(true); Splitter.Style.BackColorBrush.Color = SummerGUI.Theme.CurrentTheme.StatusBar.BackColor; Panel2.Style.BorderColorPen.Color = SummerGUI.Theme.Colors.Base0; Panel2.Style.BackColorBrush.Color = SummerGUI.Theme.Colors.Base01; CalendarSplitter = new SplitContainer ("calendarsplit", SplitOrientation.Horizontal, defaultMonthCalendarWidth); this.Panel2.AddChild (CalendarSplitter); MonthCalendar = new MonthCalendar ("monthcalendar1", SummerGUIWindow.CurrentContext.FontManager.StatusFont, SummerGUIWindow.CurrentContext.FontManager.BoldFont ); CalendarSplitter.Panel1.AddChild (MonthCalendar); GrdTasks = new DataGridView ("tasks"); CalendarSplitter.Panel2.AddChild (GrdTasks); DayView1 = new DayView ("dayview1"); DayView2 = new DayView ("dayview2"); DayViewSplitter = new SplitContainer ("dayviewsplitter", SplitOrientation.Horizontal, 0.5f); DayViewSplitter.Panel1.AddChild (DayView1); DayViewSplitter.Panel2.AddChild (DayView2); DayViewSplitter.Panel2Collapsed = true; Panel1.AddChild (DayViewSplitter); Tools = Panel1.AddChild (new DayViewToolBar ("dayviewtoolbar", Menu.Children, this)); Menu.Expanding += delegate { Tools.SetupMenu(); }; CanFocus = true; DayView1.Focus (); }
public PlotterContainer(string name) : base(name, SplitOrientation.Vertical, -240f) { Plotter = new Graph2DPlotter("plotter"); Panel1.AddChild(Plotter); GRD = new DataGridView("dgv"); GRD.RowHeaderWidth = 0; GRD.AlternatingRowColor = Color.FromArgb(50, Theme.Colors.Cyan); Panel2.AddChild(GRD); Graphs = new GraphList(); GraphBase GB = new GraphBase(null, GRD); Graphs.Add(GB); GRD.SetDataProvider(GB); GB.OnDataLoaded(); Plotter.Graphs = Graphs; Plotter.Graph = GB; GB.GraphColor = Theme.Colors.Orange; }