Beispiel #1
0
 public CompetitionManager(WebBrowser webBrowser, ResourceManager resourceManager, string appPath)
 {
     this.AppPath     = appPath;
     this.Connection  = new SQLiteConnection("Data Source=" + appPath + "mrbuggy6.sqlite;Version=3;");
     this.CurrentView = this.GetViewById(1U);
     View.Init((IActionsContainer)Settings.ReportFile, resourceManager, this.Connection, appPath + "temp\\");
     this.WebBrowser = webBrowser;
     this.WebBrowser.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(this.DocumentCompleted);
     this.WebBrowser.Navigate("about:blank");
     this.WebBrowser.Document.Write(string.Empty);
     this.WebBrowser.DocumentText = this.CurrentView.GetContent();
     View.Document             = webBrowser.Document;
     this.LastConnectionStatus = ConnetcionStatus.Offilne;
 }
 private void ChangeConnectionStatus(ConnetcionStatus connectionStatus)
 {
     if (connectionStatus == ConnetcionStatus.Online)
     {
         this.status.Image = (Image)Resources.status_online;
         this.toolTip.SetToolTip((Control)this.status, "Server status: online");
     }
     else if (connectionStatus == ConnetcionStatus.Busy)
     {
         this.status.Image = (Image)Resources.status_busy;
         this.toolTip.SetToolTip((Control)this.status, "Server status: is busy");
     }
     else
     {
         this.status.Image = (Image)Resources.status_offline;
         this.toolTip.SetToolTip((Control)this.status, "Server status: offline");
     }
 }
 private void Manager_ConnectionChangeStatus(object sender, ConnetcionStatus connectionStatus)
 {
     this.ChangeConnectionStatus(connectionStatus);
 }
Beispiel #4
0
 private void OnChangeConnectionStatus(ConnetcionStatus connectionStatus)
 {
     this.LastConnectionStatus = connectionStatus;
     // ISSUE: reference to a compiler-generated field
     this.ConnectionChangeStatus((object)this, connectionStatus);
 }