void AddHandlers() { NavigationBarSwitch.AddTarget((sender, e) => { NavigationBarChanged(sender as UISwitch); }, UIControlEvent.ValueChanged); StatusBarSwitch.AddTarget((sender, e) => { StatusBarChanged(sender as UISwitch); }, UIControlEvent.ValueChanged); ImageTintSlider.AddTarget((sender, e) => { SliderImageTintChanged(sender as UISlider); }, UIControlEvent.ValueChanged); SliderDuration.AddTarget((sender, e) => { SliderDurationChanged(sender as UISlider); }, UIControlEvent.ValueChanged); BtnShow.Clicked += BtnShowNotificationPressed; BtnPrint.Clicked += BtnPrintNotificationPress; BtnDismiss.Clicked += BtnDismissNotificationPressed; }
void ReleaseDesignerOutlets() { if (ActivityIndicatorAlignmentSegementControl != null) { ActivityIndicatorAlignmentSegementControl.Dispose(); ActivityIndicatorAlignmentSegementControl = null; } if (BtnDismiss != null) { BtnDismiss.Dispose(); BtnDismiss = null; } if (BtnPrint != null) { BtnPrint.Dispose(); BtnPrint = null; } if (BtnShow != null) { BtnShow.Dispose(); BtnShow = null; } if (ContentView != null) { ContentView.Dispose(); ContentView = null; } if (coverNavBarSwitch != null) { coverNavBarSwitch.Dispose(); coverNavBarSwitch = null; } if (DismissibleWithTapSwitch != null) { DismissibleWithTapSwitch.Dispose(); DismissibleWithTapSwitch = null; } if (ForceUserInteractionSwitch != null) { ForceUserInteractionSwitch.Dispose(); ForceUserInteractionSwitch = null; } if (ImageAlignmentSegmentedControl != null) { ImageAlignmentSegmentedControl.Dispose(); ImageAlignmentSegmentedControl = null; } if (ImageTintEnabledSwitch != null) { ImageTintEnabledSwitch.Dispose(); ImageTintEnabledSwitch = null; } if (ImageTintSlider != null) { ImageTintSlider.Dispose(); ImageTintSlider = null; } if (InAnimationTypeSegmentedControl != null) { InAnimationTypeSegmentedControl.Dispose(); InAnimationTypeSegmentedControl = null; } if (LblDuration != null) { LblDuration.Dispose(); LblDuration = null; } if (LblPadding != null) { LblPadding.Dispose(); LblPadding = null; } if (NavigationBarSwitch != null) { NavigationBarSwitch.Dispose(); NavigationBarSwitch = null; } if (OutAnimationTypeSegmentedControl != null) { OutAnimationTypeSegmentedControl.Dispose(); OutAnimationTypeSegmentedControl = null; } if (ScrollView != null) { ScrollView.Dispose(); ScrollView = null; } if (SegAlignment != null) { SegAlignment.Dispose(); SegAlignment = null; } if (SegFromDirection != null) { SegFromDirection.Dispose(); SegFromDirection = null; } if (SegSubtitleAlignment != null) { SegSubtitleAlignment.Dispose(); SegSubtitleAlignment = null; } if (SegToDirection != null) { SegToDirection.Dispose(); SegToDirection = null; } if (ShowActivityIndicatorSwitch != null) { ShowActivityIndicatorSwitch.Dispose(); ShowActivityIndicatorSwitch = null; } if (ShowImageSwitch != null) { ShowImageSwitch.Dispose(); ShowImageSwitch = null; } if (SlideOverSwitch != null) { SlideOverSwitch.Dispose(); SlideOverSwitch = null; } if (SliderDuration != null) { SliderDuration.Dispose(); SliderDuration = null; } if (SliderPadding != null) { SliderPadding.Dispose(); SliderPadding = null; } if (SlideUnderSwitch != null) { SlideUnderSwitch.Dispose(); SlideUnderSwitch = null; } if (StatusBarSwitch != null) { StatusBarSwitch.Dispose(); StatusBarSwitch = null; } if (Toolbar != null) { Toolbar.Dispose(); Toolbar = null; } if (TxtNotificationMessage != null) { TxtNotificationMessage.Dispose(); TxtNotificationMessage = null; } if (TxtSubtitleMessage != null) { TxtSubtitleMessage.Dispose(); TxtSubtitleMessage = null; } }