public void AddPage(SqliteAccessor accessor) { var addPage = new QueryResultView(); addPage.Init(); addPage.Show(accessor); Pager.AddPage(@"Query " + (Pager.PagesCount + 1), addPage); }
private void Prepare() { Height = AppBehind.Get.WindowHeight; Width = AppBehind.Get.WindowWidth; FontFamily = new FontFamily(AppBehind.Get.FontFamily); FontSize = AppBehind.Get.FontSize; Pager.AppendErrorDelegate += AppBehind.Get.AppendError; Pager.FontFamily = new FontFamily(AppBehind.Get.FontFamily); Pager.FontSize = AppBehind.Get.FontSize; Pager.EnableRemovePage = false; Pager.Init(); Pager.AddPage(AppBehind.Get.MainWindowCaptions.TabFileBrowse, new FileBrowse()); Pager.AddPage(AppBehind.Get.MainWindowCaptions.TabTableList, new TableList()); Pager.AddPage(AppBehind.Get.MainWindowCaptions.TabQueryStringInput, new QueryStringInput()); Pager.AddPage(AppBehind.Get.MainWindowCaptions.TabQueryResultViewList, new QueryResultViewList()); Pager.AddPage(AppBehind.Get.MainWindowCaptions.TabStringStorage, new StringStorage()); Pager.AddPage(AppBehind.Get.MainWindowCaptions.TabBinaryStorage, new BinaryStorage()); Pager.AddPage(AppBehind.Get.MainWindowCaptions.TabTagMaster, new TagMaster()); Pager.AddPage(AppBehind.Get.MainWindowCaptions.TabClone, new Clone()); Pager.AddPage(AppBehind.Get.MainWindowCaptions.TabRunningInformation, new RunningInformations()); AppBehind.Get.AppendError += Logger.AppendError; AppBehind.Get.AppendError += ((RunningInformations)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabRunningInformation)) .AppendInfo; AppBehind.Get.AppendInfo += Logger.AppendInfo; AppBehind.Get.AppendInfo += ((RunningInformations)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabRunningInformation)) .AppendInfo; AppBehind.Get.Reload += ((TableList)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabTableList)).FillTableList; AppBehind.Get.Reload += AppBehind.Get.ReloadTags; AppBehind.Get.SetQueryString += ((QueryStringInput)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabQueryStringInput)) .SetQueryString; AppBehind.Get.AddPage += ((QueryResultViewList)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabQueryResultViewList)) .AddPage; ((FileBrowse)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabFileBrowse)).Init(); ((TableList)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabTableList)).Init(); ((QueryStringInput)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabQueryStringInput)).Init(); ((QueryResultViewList)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabQueryResultViewList)).Init(); ((StringStorage)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabStringStorage)).Init(); ((BinaryStorage)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabBinaryStorage)).Init(); ((TagMaster)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabTagMaster)).Init(); ((Clone)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabClone)).Init(); ((RunningInformations)Pager.GetPage(AppBehind.Get.MainWindowCaptions.TabRunningInformation)).Init(); Logger.SafeTicks = -1; Logger.Start(); Pager.SwitchPage(0); }