void ReleaseDesignerOutlets()
        {
            if (CustomNavigationBarItem != null)
            {
                CustomNavigationBarItem.Dispose();
                CustomNavigationBarItem = null;
            }

            if (ProgressIndicator != null)
            {
                ProgressIndicator.Dispose();
                ProgressIndicator = null;
            }

            if (SearchBar != null)
            {
                SearchBar.Dispose();
                SearchBar = null;
            }

            if (TableView != null)
            {
                TableView.Dispose();
                TableView = null;
            }

            if (CustomNavigationBar != null)
            {
                CustomNavigationBar.Dispose();
                CustomNavigationBar = null;
            }
        }
        private void InitNavigationBar()
        {
            CustomNavigationBarItem.Title = ViewModel.LocalizedStrings.NewChat;

            CustomNavigationBar.ShadowImage = new UIImage();

            CustomNavigationBarItem.SetCommand(
                ViewModel.LocalizedStrings.Cancel,
                StyleHelper.Style.AccentColor,
                ViewModel.CancelCommand,
                true);
        }
Beispiel #3
0
        private void InitNavigationBar()
        {
            CustomNavigationBarItem.Title = ViewModel.Title;

            CustomNavigationBar.ShadowImage = new UIImage();

            CustomNavigationBarItem.SetCommand(
                UIImage.FromBundle(StyleHelper.Style.BackButtonBundleName),
                ViewModel.CancelCommand,
                true);

            CustomNavigationBarItem.SetCommand(
                ViewModel.Resources.Done,
                StyleHelper.Style.AccentColor,
                ViewModel.DoneCommand,
                false);
        }
Beispiel #4
0
        void ReleaseDesignerOutlets()
        {
            if (CustomNavigationBar != null)
            {
                CustomNavigationBar.Dispose();
                CustomNavigationBar = null;
            }

            if (CustomNavigationBarItem != null)
            {
                CustomNavigationBarItem.Dispose();
                CustomNavigationBarItem = null;
            }

            if (SelectedMembersCollectionView != null)
            {
                SelectedMembersCollectionView.Dispose();
                SelectedMembersCollectionView = null;
            }

            if (SelectedMembersCollectionViewTopConstraint != null)
            {
                SelectedMembersCollectionViewTopConstraint.Dispose();
                SelectedMembersCollectionViewTopConstraint = null;
            }

            if (TableView != null)
            {
                TableView.Dispose();
                TableView = null;
            }

            if (TableViewSearchBar != null)
            {
                TableViewSearchBar.Dispose();
                TableViewSearchBar = null;
            }

            if (ProgressIndicator != null)
            {
                ProgressIndicator.Dispose();
                ProgressIndicator = null;
            }
        }