void Dialoug_Closed(object sender, object e) { if (Closed != null) { Closed.Invoke(this, EventArgs.Empty); } }
protected virtual void onClosed(EventArgs args) { if (Closed != null) { Closed.Invoke(this, args); } }
protected virtual void OnClosed() { if (Closed != null) { Closed.Invoke(this, EventArgs.Empty); } }
protected void fireClosed() { if (Closed != null) { Closed.Invoke(this, EventArgs.Empty); } }
private void OnClose() { if (Closed != null) { Closed.Invoke(this, EventArgs.Empty); } }
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); }
/// <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; }
private void FireClosed() { if (Closed != null) { Closed.Invoke(this, new SourceControlTypeEventArgs(this.ControlType)); } }
void connection_Closed(int id) { if (Closed != null) { Closed.Invoke(id); } }
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); }
/// <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; }
public void Close() { if (SplitterDistance == 0) { return; } BackupDistance = SplitterDistance; SplitterDistance = 0; if (Closed != null) { Closed.Invoke(); } }
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); } }