private void TimetableStringChanged(object sender, ColumnTextData e)
 {
     //hardcoded because lolandroid
     this.RunOnUiThread(() => TimeColumns[0].Text +=  "\n" + e.TimeColumns[0].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[1].Text +=  "\n" + e.TimeColumns[1].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[2].Text +=  "\n" + e.TimeColumns[2].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[3].Text +=  "\n" + e.TimeColumns[3].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[4].Text +=  "\n" + e.TimeColumns[4].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[5].Text +=  "\n" + e.TimeColumns[5].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[6].Text +=  "\n" + e.TimeColumns[6].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[7].Text +=  "\n" + e.TimeColumns[7].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[8].Text +=  "\n" + e.TimeColumns[8].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[9].Text +=  "\n" + e.TimeColumns[9].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[10].Text +=  "\n" + e.TimeColumns[10].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[11].Text +=  "\n" + e.TimeColumns[11].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[12].Text +=  "\n" + e.TimeColumns[12].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[13].Text +=  "\n" + e.TimeColumns[13].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[14].Text +=  "\n" + e.TimeColumns[14].Replace("\r", "\n"));
     this.RunOnUiThread(() => TimeColumns[15].Text +=  "\n" + e.TimeColumns[15].Replace("\r", "\n"));
     this.RunOnUiThread(() => loadingBar.Visibility = ViewStates.Gone);
 }
Exemple #2
0
 public StringEventFirer()
 {
     data        = new ColumnTextData();
     TimeColumns = new String[16];
 }
        private void TodayDepartStringChanged(object sender, ColumnTextData e)
        {
            for (int i = 0; i < e.TimeColumns.Length; i++)
            {
                if (e.TimeColumns[i] != null)
                {
                    if (e.TimeColumns[i].IndexOf("No trains.") != -1)
                    {
                        ShowError(i / 2, "No trains.");
                    }
                    if (TimeColumns[i].Text == "")
                    {
                        TimeColumns[i].Text = e.TimeColumns[i];
                    }
                }
            }

            performanceProgressBar.Visibility = Visibility.Collapsed;
        }
 public StringEventFirer()
 {
     data = new ColumnTextData();
     TimeColumns = new String[16];
 }