void OnInitialized(object sender, InitializedEventArgs e) { // do not show the form if it is already closed if (_isClosed) { e.Ignore = true; } }
private void OnWorkspaceInitialized(object sender, InitializedEventArgs e) { var mapService = Workspace.Services.Get <IMapService>(); if (mapService != null) { // Add a layer to the maps to be able to add the Fires on a specific layer. mapService.RegisterLayer(new LayerDescriptor(EventMapObject.FiresLayerId, EventMapObject.FireLayerName)); } }
async void Host_Initialized(object sender, InitializedEventArgs e) { await Dispatcher.RunIdleAsync((IdleDispatchedHandler)async delegate(IdleDispatchedHandlerArgs ignore) { await host.Runtime.RunAllTests(); var state = (IDictionary <string, object>)(host.Runtime.SaveState()); state["mode"] = "results"; host.Runtime.LoadState(state); host.Runtime.RenderIfNeeded(); ApplicationView.GetForCurrentView().Title = "{succeeded:" + host.Runtime.GetTestSummary() + "}"; }); }
private void Initialize(InitializedEventArgs eventArgs) { List <string> args = new List <string>(eventArgs.SwapChainOptions) { "--no-osd", "--no-snapshot-preview" }; var LibVLC = new LibVLC(args.ToArray()); var MediaPlayer = new MediaPlayer(LibVLC); using (var media = new Media(LibVLC, new Uri("rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov"))) { MediaPlayer.Play(media); } }
private Int32 myBrowseCallbackProc(IntPtr hwnd, UInt32 uMsg, Int32 lParam, Int32 lpData) { switch ((BrowseForFolderMessages)uMsg) { case BrowseForFolderMessages.BFFM_INITIALIZED: Debug.WriteLine("BFFM_INITIALIZED"); if (OnInitialized != null) { InitializedEventArgs args = new InitializedEventArgs(hwnd); OnInitialized(this, args); } break; case BrowseForFolderMessages.BFFM_IUNKNOWN: Debug.WriteLine("BFFM_IUNKNOWN"); if (OnIUnknown != null) { IUnknownEventArgs args = new IUnknownEventArgs(hwnd, (IntPtr)lParam); OnIUnknown(this, args); } break; case BrowseForFolderMessages.BFFM_SELCHANGED: Debug.WriteLine("BFFM_SELCHANGED"); if (OnSelChanged != null) { SelChangedEventArgs args = new SelChangedEventArgs(hwnd, (IntPtr)lParam); OnSelChanged(this, args); } break; case BrowseForFolderMessages.BFFM_VALIDATEFAILEDA: Debug.WriteLine("BFFM_VALIDATEFAILEDA"); if (OnValidateFailed != null) { string failedSel = Marshal.PtrToStringAnsi((IntPtr)lParam); ValidateFailedEventArgs args = new ValidateFailedEventArgs(hwnd, failedSel); return OnValidateFailed(this, args); } break; case BrowseForFolderMessages.BFFM_VALIDATEFAILEDW: Debug.WriteLine("BFFM_VALIDATEFAILEDW"); if (OnValidateFailed != null) { string failedSel = Marshal.PtrToStringUni((IntPtr)lParam); ValidateFailedEventArgs args = new ValidateFailedEventArgs(hwnd, failedSel); return OnValidateFailed(this, args); } break; } return 0; }
private Int32 myBrowseCallbackProc(IntPtr hwnd, UInt32 uMsg, Int32 lParam, Int32 lpData) { switch ((BrowseForFolderMessages)uMsg) { case BrowseForFolderMessages.BFFM_INITIALIZED: Debug.WriteLine("BFFM_INITIALIZED"); if (OnInitialized != null) { InitializedEventArgs args = new InitializedEventArgs(hwnd); OnInitialized(this, args); } break; case BrowseForFolderMessages.BFFM_IUNKNOWN: Debug.WriteLine("BFFM_IUNKNOWN"); if (OnIUnknown != null) { IUnknownEventArgs args = new IUnknownEventArgs(hwnd, (IntPtr)lParam); OnIUnknown(this, args); } break; case BrowseForFolderMessages.BFFM_SELCHANGED: Debug.WriteLine("BFFM_SELCHANGED"); if (OnSelChanged != null) { SelChangedEventArgs args = new SelChangedEventArgs(hwnd, (IntPtr)lParam); OnSelChanged(this, args); } break; case BrowseForFolderMessages.BFFM_VALIDATEFAILEDA: Debug.WriteLine("BFFM_VALIDATEFAILEDA"); if (OnValidateFailed != null) { string failedSel = Marshal.PtrToStringAnsi((IntPtr)lParam); ValidateFailedEventArgs args = new ValidateFailedEventArgs(hwnd, failedSel); return(OnValidateFailed(this, args)); } break; case BrowseForFolderMessages.BFFM_VALIDATEFAILEDW: Debug.WriteLine("BFFM_VALIDATEFAILEDW"); if (OnValidateFailed != null) { string failedSel = Marshal.PtrToStringUni((IntPtr)lParam); ValidateFailedEventArgs args = new ValidateFailedEventArgs(hwnd, failedSel); return(OnValidateFailed(this, args)); } break; } return(0); }
void IStoreListener.OnInitialized(IStoreController controller, IExtensionProvider provider) { var eventArgs = new InitializedEventArgs(controller, provider); Initialized(this, eventArgs); }
private void InitializeLibVLC(InitializedEventArgs eventArgs) { LibVLC = new LibVLC(eventArgs.SwapChainOptions); MediaPlayer = new MediaPlayer(LibVLC); MediaPlayer.Play(new Media(LibVLC, new Uri("http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"))); }
private void VideoView_Initialized(object sender, InitializedEventArgs e) { ViewModel.InitializedCommand.Execute(e.SwapChainOptions); }
private void MediaPlayerElement_Initialized(object sender, InitializedEventArgs e) { ViewModel.InitializedCommand.Execute(e.SwapChainOptions); }
private void OnWorkspaceInitialized(object sender, InitializedEventArgs e) { }