public void Detach () { if (window != null) { window.OnHitTest -= OnTogglWindowHit; } window = null; }
public void Detach () { if (window != null) { window.OnHitTest -= OnTogglWindowHit; switcherView.SelectorButton.TouchUpInside -= OnNavigationButtonTouched; } window = null; }
public void Detach() { if (window != null) { window.OnHitTest -= OnTogglWindowHit; } window = null; }
public void Attach (UIViewController controller) { controller.NavigationItem.LeftBarButtonItem = new UIBarButtonItem ( Image.IconNav.ImageWithRenderingMode (UIImageRenderingMode.AlwaysOriginal), UIBarButtonItemStyle.Plain, OnNavigationButtonTouched); window = AppDelegate.TogglWindow; }
public void Detach() { if (window != null) { window.OnHitTest -= OnTogglWindowHit; switcherView.SelectorButton.TouchUpInside -= OnNavigationButtonTouched; } window = null; }
public override void LoadView() { base.LoadView(); window = AppDelegate.TogglWindow; View.BackgroundColor = UIColor.White; _panGesture = new UIPanGestureRecognizer(OnPanGesture) { CancelsTouchesInView = true }; menuButtons = new[] { (logButton = new UIButton()), (reportsButton = new UIButton()), (settingsButton = new UIButton()), (feedbackButton = new UIButton()), (signOutButton = new UIButton()), }; logButton.SetTitle("LeftPanelMenuLog".Tr(), UIControlState.Normal); logButton.SetImage(Image.TimerButton, UIControlState.Normal); logButton.SetImage(Image.TimerButtonPressed, UIControlState.Highlighted); reportsButton.SetTitle("LeftPanelMenuReports".Tr(), UIControlState.Normal); reportsButton.SetImage(Image.ReportsButton, UIControlState.Normal); reportsButton.SetImage(Image.ReportsButtonPressed, UIControlState.Highlighted); settingsButton.SetTitle("LeftPanelMenuSettings".Tr(), UIControlState.Normal); settingsButton.SetImage(Image.SettingsButton, UIControlState.Normal); settingsButton.SetImage(Image.SettingsButtonPressed, UIControlState.Highlighted); feedbackButton.SetTitle("LeftPanelMenuFeedback".Tr(), UIControlState.Normal); feedbackButton.SetImage(Image.FeedbackButton, UIControlState.Normal); feedbackButton.SetImage(Image.FeedbackButtonPressed, UIControlState.Highlighted); signOutButton.SetTitle("LeftPanelMenuSignOut".Tr(), UIControlState.Normal); signOutButton.SetImage(Image.SignoutButton, UIControlState.Normal); signOutButton.SetImage(Image.SignoutButtonPressed, UIControlState.Highlighted); logButton.HorizontalAlignment = reportsButton.HorizontalAlignment = settingsButton.HorizontalAlignment = feedbackButton.HorizontalAlignment = signOutButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Left; var authManager = ServiceContainer.Resolve <AuthManager> (); authManager.PropertyChanged += OnUserLoad; foreach (var button in menuButtons) { button.Apply(Style.LeftView.Button); button.TouchUpInside += OnMenuButtonTouchUpInside; View.AddSubview(button); } View.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); View.AddConstraints(MakeConstraints(View)); View.AddGestureRecognizer(_panGesture); }
public override void LoadView () { base.LoadView (); window = AppDelegate.TogglWindow; View.BackgroundColor = UIColor.White; _panGesture = new UIPanGestureRecognizer (OnPanGesture) { CancelsTouchesInView = true }; menuButtons = new[] { (logButton = new UIButton ()), (reportsButton = new UIButton ()), (settingsButton = new UIButton ()), (feedbackButton = new UIButton ()), (signOutButton = new UIButton ()), }; logButton.SetTitle ("LeftPanelMenuLog".Tr (), UIControlState.Normal); logButton.SetImage (Image.TimerButton, UIControlState.Normal); logButton.SetImage (Image.TimerButtonPressed, UIControlState.Highlighted); reportsButton.SetTitle ("LeftPanelMenuReports".Tr (), UIControlState.Normal); reportsButton.SetImage (Image.ReportsButton, UIControlState.Normal); reportsButton.SetImage (Image.ReportsButtonPressed, UIControlState.Highlighted); settingsButton.SetTitle ("LeftPanelMenuSettings".Tr (), UIControlState.Normal); settingsButton.SetImage (Image.SettingsButton, UIControlState.Normal); settingsButton.SetImage (Image.SettingsButtonPressed, UIControlState.Highlighted); feedbackButton.SetTitle ("LeftPanelMenuFeedback".Tr (), UIControlState.Normal); feedbackButton.SetImage (Image.FeedbackButton, UIControlState.Normal); feedbackButton.SetImage (Image.FeedbackButtonPressed, UIControlState.Highlighted); signOutButton.SetTitle ("LeftPanelMenuSignOut".Tr (), UIControlState.Normal); signOutButton.SetImage (Image.SignoutButton, UIControlState.Normal); signOutButton.SetImage (Image.SignoutButtonPressed, UIControlState.Highlighted); logButton.HorizontalAlignment = reportsButton.HorizontalAlignment = settingsButton.HorizontalAlignment = feedbackButton.HorizontalAlignment = signOutButton.HorizontalAlignment = UIControlContentHorizontalAlignment.Left; var authManager = ServiceContainer.Resolve<AuthManager> (); authManager.PropertyChanged += OnUserLoad; foreach (var button in menuButtons) { button.Apply (Style.LeftView.Button); button.TouchUpInside += OnMenuButtonTouchUpInside; View.AddSubview (button); } View.SubviewsDoNotTranslateAutoresizingMaskIntoConstraints(); View.AddConstraints (MakeConstraints (View)); View.AddGestureRecognizer (_panGesture); }
public void Attach(UIViewController controller) { this.controller = controller; window = AppDelegate.TogglWindow; window.OnHitTest += OnTogglWindowHit; controller.NavigationItem.LeftBarButtonItem = new UIBarButtonItem( Image.IconNav.ImageWithRenderingMode(UIImageRenderingMode.AlwaysOriginal), UIBarButtonItemStyle.Plain, OnNavigationButtonTouched); }
public void Attach (ReportsViewController controller) { this.controller = controller; window = AppDelegate.TogglWindow; window.OnHitTest += OnTogglWindowHit; switcherView = new ZoomSelectorView () { IsMenuDisplayed = false, Level = controller.ZoomLevel }; switcherView.SelectorButton.TouchUpInside += OnNavigationButtonTouched; controller.NavigationItem.TitleView = switcherView; }
public void Attach(ReportsViewController controller) { this.controller = controller; window = AppDelegate.TogglWindow; window.OnHitTest += OnTogglWindowHit; switcherView = new ZoomSelectorView() { IsMenuDisplayed = false, Level = controller.ZoomLevel }; switcherView.SelectorButton.TouchUpInside += OnNavigationButtonTouched; controller.NavigationItem.TitleView = switcherView; }
public void Detach () { window = null; }