public void SetUp()
        {
            monitor = new StatusMonitorStub();
            monitor.DataLoadError += monitor_DataLoadError;
            monitor.DataLoaded += monitor_DataLoaded;
            monitor.DashboardStatusChanged += monitor_DashboardStatusChanged;
            monitor.NewBuildAvailable += monitor_NewBuildAvailable;
            fakeStatus = new XmlDocument();

            projectNodes = fakeStatus.CreateElement("projects");

            fakeStatus.AppendChild(projectNodes);

            monitor.Document = fakeStatus;

            errorEventArgs = null;
            loadEventArgs = null;
            statusChangedEventArgs = null;
            newBuildEventArgs = null;
        }
 void monitor_DataLoadError(object source, DataLoadErrorEventArgs e)
 {
     errorEventArgs = e;
 }
Beispiel #3
0
        private void onLoadError(object source, DataLoadErrorEventArgs e)
        {
            latestProject = null;
            lock (activeIcons)
            {
                activeIcons = Blank;
            }

            displayBubble("Data Load Failure", e.Cause.Message, ToolTipIcon.Warning);
        }