private string[] get_cena(string[] time_arr) { string time_str; @base @base = new @base(""); for (int i = 0; i < time_arr.Length; i++) { try { time_str = ""; @base.smena_zaprosa("select cena from predlog where Id = " + time_arr[i].Remove(time_arr[i].IndexOf(" "))); time_str = @base.get_cena(); time_arr[i] = time_arr[i].Insert(time_arr[i].Contains("Э") == true ? time_arr[i].IndexOf("Э") : time_arr[i].IndexOf("П"), " " + time_str + " "); } catch { continue; } } return(time_arr); }