Beispiel #1
0
 private void DetachEntries <T>(LocalView <T> localView)
     where T : class
 {
     foreach (var entry in localView)
     {
         GlobalTransactionScopeTestSetUp.Context.Entry(entry).State = EntityState.Detached;
     }
 }
Beispiel #2
0
        private void FillLocalView(Shell32.Folder folder)
        {
            this.Cursor = Cursors.WaitCursor;

            m_currentFolder = folder;
            // Notify that update begins
            LocalView.BeginUpdate();

            // Erase last view items
            LocalView.Items.Clear();

            // Erase previous lists image
            ImgListViewSmall.Images.Clear();
            ImgListViewLarge.Images.Clear();

            int idImage = 0;

            ListViewItem lvItem = new ListViewItem("..");

            lvItem.Tag = folder;

            LocalView.Items.Add(lvItem);

            Shell32.FolderItems items = folder.Items();

            // Folder enumeration
            foreach (Shell32.FolderItem item in items)
            {
                if (item.IsFolder)
                {
                    AddViewItem(item, ref idImage);
                }
            }

            // Other files
            foreach (Shell32.FolderItem item in items)
            {
                if (!item.IsFolder)
                {
                    AddViewItem(item, ref idImage);
                }
            }

            // End update view
            LocalView.EndUpdate();

            //ftpc.LocalFolder = folder.Title;

            this.Cursor = Cursors.Default;
        }
        void ReleaseDesignerOutlets()
        {
            if (ContainerView != null)
            {
                ContainerView.Dispose();
                ContainerView = null;
            }

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

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

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

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

            if (SwitchCameraButton != null)
            {
                SwitchCameraButton.Dispose();
                SwitchCameraButton = null;
            }
        }
 void IResettableService.ResetState() => _localView = null;
Beispiel #5
0
        private void OnClickRetour(object o)
        {
            LocalView menu = new LocalView(frame);

            frame.Navigate(menu);
        }
Beispiel #6
0
        void ReleaseDesignerOutlets()
        {
            if (BackgroundDoubleTap != null)
            {
                BackgroundDoubleTap.Dispose();
                BackgroundDoubleTap = null;
            }

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

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

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

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

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

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

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

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

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

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

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

            if (DebugData != null)
            {
                DebugData.Dispose();
                DebugData = null;
            }
        }
Beispiel #7
0
        private void OnClickRetour(object o)
        {
            LocalView game = new LocalView(frame);

            frame.Navigate(game);
        }
 /// <summary>
 /// Do not re-implement this method. To do your rendering override DoRender
 /// </summary>
 public void Render()
 {
     LocalView.Render();
 }
 public void SetModel(object model)
 {
     LocalView.SetModel(model);
 }
Beispiel #10
0
 private static T GetRandomOrDefault <T>(this LocalView <T> localView) where T : class => localView.OrderBy(r => Guid.NewGuid()).FirstOrDefault();
Beispiel #11
0
        void ReleaseDesignerOutlets()
        {
            if (JoinContainerView != null)
            {
                JoinContainerView.Dispose();
                JoinContainerView = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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