void Dialoug_Closed(object sender, object e)
 {
     if (Closed != null)
     {
         Closed.Invoke(this, EventArgs.Empty);
     }
 }
Example #2
0
 protected virtual void onClosed(EventArgs args)
 {
     if (Closed != null)
     {
         Closed.Invoke(this, args);
     }
 }
Example #3
0
 protected virtual void OnClosed()
 {
     if (Closed != null)
     {
         Closed.Invoke(this, EventArgs.Empty);
     }
 }
 protected void fireClosed()
 {
     if (Closed != null)
     {
         Closed.Invoke(this, EventArgs.Empty);
     }
 }
Example #5
0
 private void OnClose()
 {
     if (Closed != null)
     {
         Closed.Invoke(this, EventArgs.Empty);
     }
 }
Example #6
0
 public JsonPipe(IChannelOwner parent, string guid, JsonPipeInitializer initializer) : base(parent, guid)
 {
     _channel          = new(guid, parent.Connection, this);
     _initializer      = initializer;
     _channel.Closed  += (_, e) => Closed.Invoke(this, e);
     _channel.Message += (_, e) => Message.Invoke(this, e);
 }
Example #7
0
        /// <summary>
        /// Hides the UI and stops the search for devices.
        /// </summary>
        public void Hide()
        {
            ToggleLockScreen(false);

            _wearableControl.StopSearchingForDevices();

            _isVisible      = false;
            _canvas.enabled = false;
            video.SetActive(true);
            cam.SetActive(true);
            cam1.SetActive(false);
            _canvasGroup.alpha = 0f;
            if (_userDidOpen)
            {
                var connectionResult = _wearableControl.ConnectedDevice.HasValue
                                        ? WearableConnectUIResult.Successful
                                        : WearableConnectUIResult.Cancelled;
                ToggleLockScreen(false);
                if (Closed != null)
                {
                    Closed.Invoke(connectionResult);
                }
            }

            _userDidOpen = false;
        }
Example #8
0
 private void FireClosed()
 {
     if (Closed != null)
     {
         Closed.Invoke(this, new SourceControlTypeEventArgs(this.ControlType));
     }
 }
Example #9
0
 void connection_Closed(int id)
 {
     if (Closed != null)
     {
         Closed.Invoke(id);
     }
 }
Example #10
0
 public override void Close()
 {
     if (Closed != null)
     {
         Closed.Invoke(this, EventArgs.Empty);
     }
     base.Close();
 }
 private void _sendingAmqpLinkClosed(object sender, EventArgs e)
 {
     if (Logging.IsEnabled)
     {
         Logging.Enter(this, $"{nameof(_sendingAmqpLinkClosed)}");
     }
     Closed.Invoke(sender, e);
 }
Example #12
0
        /// <param name="e"></param>
        /// <summary>
        /// Handles the closed event of the modal container.
        /// </summary>
        protected virtual void OnClosed(WindowClosedEventArgs e)
        {
            if (Closed != null)
            {
                Closed.Invoke(this, e);
            }
//Close(ModalResult.Cancel);
        }
 void osWindow_Closed(OSWindow sender)
 {
     controller.destroyWindow(this);
     if (Closed != null)
     {
         Closed.Invoke(this, EventArgs.Empty);
     }
     OgreInterface.Instance.destroyRendererWindow(rendererWindow);
     controller.ActiveWindowChanged -= controller_ActiveWindowChanged;
 }
Example #14
0
 public void Close()
 {
     if (SplitterDistance == 0)
     {
         return;
     }
     BackupDistance   = SplitterDistance;
     SplitterDistance = 0;
     if (Closed != null)
     {
         Closed.Invoke();
     }
 }
Example #15
0
        async Task InternalCloseAsync(TimeSpan timeout)
        {
            State = CommunicationState.Closing;
            if (Closing != null)
            {
                Closing.Invoke(this, EventArgs.Empty);
            }
            await CloseAsync(timeout);

            State = CommunicationState.Closed;
            if (Closed != null)
            {
                Closed.Invoke(this, EventArgs.Empty);
            }
        }