public MainForm(IEnumerable<Section> topNodes = null) { Title = string.Format("Test Application [{0}, {1} {2}, {3}]", Platform.ID, EtoEnvironment.Is64BitProcess ? "64bit" : "32bit", EtoEnvironment.Platform.IsMono ? "Mono" : ".NET", EtoEnvironment.Platform.IsWindows ? EtoEnvironment.Platform.IsWinRT ? "WinRT" : "Windows" : EtoEnvironment.Platform.IsMac ? "Mac" : EtoEnvironment.Platform.IsLinux ? "Linux" : EtoEnvironment.Platform.IsUnix ? "Unix" : "Unknown"); Style = "main"; MinimumSize = new Size(400, 400); topNodes = topNodes ?? TestSections.Get(TestApplication.DefaultTestAssemblies()); //SectionList = new SectionListGridView(topNodes); //SectionList = new SectionListTreeView(topNodes); if (Platform.IsAndroid) SectionList = new SectionListGridView(topNodes); else SectionList = new SectionListTreeGridView(topNodes); this.Icon = TestIcons.TestIcon; if (Platform.IsDesktop) ClientSize = new Size(900, 650); //Opacity = 0.5; Content = MainContent(); CreateMenuToolBar(); }
public MainForm(IEnumerable<Section> topNodes = null) { Title = "Test Application"; Style = "main"; topNodes = topNodes ?? TestSections.Get(); //SectionList = new SectionListGridView(topNodes); //SectionList = new SectionListTreeView(topNodes); if (Platform.IsAndroid) SectionList = new SectionListGridView(topNodes); else SectionList = new SectionListTreeGridView(topNodes); this.Icon = TestIcons.TestIcon; if (Platform.IsDesktop) ClientSize = new Size(900, 650); //Opacity = 0.5; Content = MainContent(); CreateMenuToolBar(); }
public MainForm(IEnumerable<Section> topNodes = null) { Title = string.Format("Test Application [{0}]", Platform.ID); Style = "main"; MinimumSize = new Size(400, 400); topNodes = topNodes ?? TestSections.Get(TestApplication.DefaultTestAssemblies()); //SectionList = new SectionListGridView(topNodes); //SectionList = new SectionListTreeView(topNodes); if (Platform.IsAndroid) SectionList = new SectionListGridView(topNodes); else SectionList = new SectionListTreeGridView(topNodes); this.Icon = TestIcons.TestIcon; if (Platform.IsDesktop) ClientSize = new Size(900, 650); //Opacity = 0.5; Content = MainContent(); CreateMenuToolBar(); }