Exemplo n.º 1
0
 public void AddItemsToMenu(GenericMenu menu)
 {
     menu.AddItem(new GUIContent("Import Report"), false, () =>
     {
         var reportPath = SearchReport.Import();
         if (string.IsNullOrEmpty(reportPath))
             return;
         m_SearchText = string.Empty;
         Focus();
         InitializeReport(reportPath);
     });
     menu.AddItem(new GUIContent("Export CSV"), false, () =>
     {
         SearchReport.ExportAsCsv(GetSearchTable().name, GetColumns(), GetRows(), context);
         Focus();
     });
 }
Exemplo n.º 2
0
 static void OpenWindow()
 {
     OpenWindow(SearchReport.Import());
 }