TabControl DefaultTabs() { var control = CreateTabControl(); LogEvents(control); control.TabPages.Add(new TabPage { Text = "Tab 1", Content = TabOne() }); control.TabPages.Add(new TabPage { Text = "Tab 2", Image = TestIcons.TestIcon(), Content = TabTwo() }); control.TabPages.Add(new TabPage { Text = "Tab 3" }); foreach (var page in control.TabPages) { LogEvents(page); } UpdateMemoryUsage(); return(control); }
public About() { ID = "about"; Image = TestIcons.TestIcon(); MenuText = "About Test Application"; ToolBarText = "About"; Shortcut = Keys.F11; }
protected override Window GetWindow() { return(new Form { Content = new ImageView { Image = TestIcons.TestIcon() }, Size = new Size(640, 400), }); }
public TransformSection() { image = TestIcons.TestIcon(); font = Fonts.Sans(10); var layout = new DynamicLayout(); var drawable = new Drawable { Size = canvasSize }; drawable.Paint += (sender, pe) => { pe.Graphics.FillRectangle(Brushes.Black(Generator), pe.ClipRectangle); MatrixTests(pe.Graphics); }; layout.AddRow(new Label { Text = "Matrix" }, drawable); drawable = new Drawable { Size = canvasSize }; drawable.Paint += (sender, pe) => { pe.Graphics.FillRectangle(Brushes.Black(Generator), pe.ClipRectangle); DirectTests(pe.Graphics); }; layout.AddRow(new Label { Text = "Direct" }, drawable); layout.Add(null); var m = Matrix.Create(); m.Scale(100, 100); var m2 = m.Clone(); m2.Translate(10, 10); if (m == m2) { throw new Exception("Grr!"); } Content = layout; }
Icon GetIcon() { return(TestIcons.TestIcon()); }