Example #1
0
 static Bootstrap()
 {
     Collab.ShowHistoryWindow     = CollabHistoryWindow.ShowHistoryWindow;
     Collab.ShowToolbarAtPosition = CollabToolbarWindow.ShowCenteredAtPosition;
     Collab.IsToolbarVisible      = CollabToolbarWindow.IsVisible;
     Collab.CloseToolbar          = CollabToolbarWindow.CloseToolbar;
     Toolbar.AddSubToolbar(new CollabToolbarButton
     {
         Width = kCollabToolbarButtonWidth
     });
 }
Example #2
0
        static Bootstrap()
        {
            Collab.ShowHistoryWindow     = CollabHistoryWindow.ShowHistoryWindow;
            Collab.ShowToolbarAtPosition = CollabToolbarWindow.ShowCenteredAtPosition;
            Collab.IsToolbarVisible      = CollabToolbarWindow.IsVisible;
            Collab.CloseToolbar          = CollabToolbarWindow.CloseToolbar;
            Toolbar.AddSubToolbar(new CollabToolbarButton
            {
                Width = kCollabToolbarButtonWidth
            });

            // Register get changes callbacks
            CollabVersionControl.GetChangesFinished          += CollabToolbarWindow.OnGetChangesFinish;
            CollabVersionControl.GetChangesStarted           += CollabToolbarWindow.OnGetChangesStart;
            CollabVersionControl.UpdateCachedChangesFinished += CollabToolbarWindow.OnUpdateCachedChangesFinish;
        }
Example #3
0
        static Bootstrap()
        {
            var toolbar = new ToolbarButtonV2 {
                Width = 32f
            };

            Toolbar.AddSubToolbar(toolbar);
            toolbar.Update();

            Collab.ShowHistoryWindow += () =>
            {
                CollaborateWindow.Init(CollaborateWindow.FocusTarget.History);
            };

            Collab.ShowChangesWindow += () =>
            {
                CollaborateWindow.Init(CollaborateWindow.FocusTarget.Changes);
            };
        }
Example #4
0
 static Bootstrap()
 {
     Toolbar.AddSubToolbar(new ToolbarButton {
         Width = 32f
     });
 }