コード例 #1
0
        private void ShowLabelsSelector()
        {
            var viewController = new IssueLabelsView {
                Title = "Labels"
            };

            viewController.ViewModel = ViewModel.Labels;
            NavigationController.PushViewController(viewController, true);
        }
コード例 #2
0
ファイル: BaseIssueView.cs プロジェクト: jiangzi/CodeHub
        private void ShowLabelsSelector()
        {
            var viewController = new IssueLabelsView {
                Title = "Labels"
            };

            viewController.ViewModel = ViewModel.Labels;
            viewController.NavigationItem.LeftBarButtonItem = new UIBarButtonItem(Images.Cancel, UIBarButtonItemStyle.Done, (s, e) => {
                ViewModel.Labels.SelectLabelsCommand.ExecuteIfCan();
                viewController.DismissViewController(true, null);
            });
            PresentViewController(new ThemedNavigationController(viewController), true, null);
        }