예제 #1
0
 private void AddView(ViewLifetimeControl viewControl)
 {
     lock (_collectionLock)
     {
         App.LogService.Write($"Adding view: {viewControl.Id}");
         SecondaryViews.Add(viewControl);
     }
     ViewAdded?.Invoke(this, new ViewLifetimeControlEventArgs()
     {
         ViewControl = viewControl
     });
 }
예제 #2
0
 internal void SendViewAdded(View view)
 {
     ViewAdded?.Invoke(view, EventArgs.Empty);
 }
예제 #3
0
 public static void OnViewAdded(RavenhillViewType type)
 {
     ViewAdded?.Invoke(type);
 }
예제 #4
0
 private void AddViewButtonClicked(object sender, ClickedEventArgs args)
 {
     ViewAdded?.Invoke(objectView, new EventArgs());
 }