protected void Back() { NameLabel.Hide(); NameBox.Hide(); NameBox.Text = ""; TypeLabeld.Hide(); Typebox.Hide(); OwnerLabel.Hide(); OwnerBox.Hide(); OwnerBox.Text = ""; AddButton.Show(); ViewButton.Show(); BackButton.Hide(); DoneButton.Hide(); ScreenLabel.Hide(); ScreenSpin.Hide(); ScreenSpin.Text = "0"; CatLabel.Hide(); CatBox.Hide(); ExcLabel.Hide(); ExTablesButton.Hide(); ExTablesButton.Active = false; HoursLabel.Hide(); HoursBox.Hide(); HoursBox.Text = ""; }
private void loadSettings() { SettingsData data = JsonConvert.DeserializeObject <SettingsData>(settings.GetValue <string>(SettingsData.Key)); if (data == null) { data = new SettingsData(); data.HoursList = new List <TimeItem>() { new TimeItem(Resources.AppResources.MorningLabel) { Hour = TimeSpan.Parse("08:00:00") }, new TimeItem(Resources.AppResources.EveningLabel) { Hour = TimeSpan.Parse("20:00:00") } }; settings.AddOrUpdateValue <string>(SettingsData.Key, JsonConvert.SerializeObject(data)); } TimeItems = new ReactiveList <TimeItem>(data.HoursList) { ChangeTrackingEnabled = true }; string[] hoursNames; if (HoursLabel == null) { hoursNames = new string[1] { TimeItems[0].Name } } ; else { hoursNames = HoursLabel.Split(new string[] { ", " }, StringSplitOptions.RemoveEmptyEntries); } CheckedHours = TimeItems .Where(h => hoursNames.Contains(h.Name)) .Select(h => { h.Checked = true; return(h); }) .ToList(); setHours(); RingUri = data.RingUri; }
protected void OnAddButtonClicked(object sender, EventArgs e) { DoneLabel.Hide(); NameLabel.Show(); NameBox.Show(); TypeLabeld.Show(); Typebox.Show(); OwnerLabel.Show(); OwnerBox.Show(); AddButton.Hide(); ViewButton.Hide(); BackButton.Show(); DoneButton.Show(); HoursBox.Show(); HoursLabel.Show(); }
void ReleaseDesignerOutlets() { if (ChangeDescriptionLabel != null) { ChangeDescriptionLabel.Dispose(); ChangeDescriptionLabel = null; } if (ChangeLabel != null) { ChangeLabel.Dispose(); ChangeLabel = null; } if (ContentBackgroundView != null) { ContentBackgroundView.Dispose(); ContentBackgroundView = null; } if (HoursLabel != null) { HoursLabel.Dispose(); HoursLabel = null; } if (OriginalLessonLabel != null) { OriginalLessonLabel.Dispose(); OriginalLessonLabel = null; } if (SchoolClassLabel != null) { SchoolClassLabel.Dispose(); SchoolClassLabel = null; } if (SchoolGradientView != null) { SchoolGradientView.Dispose(); SchoolGradientView = null; } }