private void OnEditorConvertProcess() { EditorUtility.DisplayProgressBar("Conecting to SpreadSheet...", "", 0); try { var requestCo = SelectedConverter.DoProcess(SelectedSpreadSheet.GetWebRequest()); while (requestCo.MoveNext()) { } } catch (Exception ex) { Debug.LogError(ex); } EditorUtility.ClearProgressBar(); }
private void OnEditorTestAPIProcess() { var res = ""; var cellRange = SelectedConverter.MultiSheetConvertMode ? SelectedConverter.CellRange.Replace("#NUM#", SelectedConverter.StartSheetIndex.ToString()) : SelectedConverter.CellRange; var webRequest = SelectedSpreadSheet.GetWebRequest(); var requestCo = webRequest.GetSheetsAPI(cellRange); while (requestCo.MoveNext()) { } res = ( string )requestCo.Current; textAPIWin.Initialize(res, cellRange); PopupWindow.Show(Rect.zero, textAPIWin); }