private int _confereeCount; // Anzahl Teilnehmer #endregion #region ----------------------------- Constructors & Finalizers ---------------------------- /// <summary> /// initialisiert Konferenz /// </summary> public Conference(itCampus.bb.Monitor.Conference conference, ConferenceControl conferenceControl) { // Parameter initialisieren _key = conference.Key; // Konferenz zu Konferenzverwaltung hinzufügen _conferenceControl = conferenceControl; _conferenceControl.AddConference(this); // Parameter aktualisiern RefreshParameters(conference); }
/// <summary> /// initialisiert Konferenzseite /// </summary> public ConferencePage(ConferenceControl conferenceControl) { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); // Konferenzverwaltung referenzieren _conferenceControl = conferenceControl; _conferenceControl.OnAddConference += new ConferenceControl.ConferenceEventHandler( _conferenceControl_OnAddConference); _conferenceControl.OnRefreshConference += new ConferenceControl.ConferenceEventHandler( _conferenceControl_OnRefreshConference); _conferenceControl.OnRemoveConference += new ConferenceControl.ConferenceEventHandler( _conferenceControl_OnRemoveConference); // Seitenmodus initialisieren this.Mode = PageMode.List; }
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose(bool disposing) { // Konferenzverwaltung freigeben _conferenceControl.OnAddConference -= new ConferenceControl.ConferenceEventHandler( _conferenceControl_OnAddConference); _conferenceControl.OnRefreshConference -= new ConferenceControl.ConferenceEventHandler( _conferenceControl_OnRefreshConference); _conferenceControl.OnRemoveConference -= new ConferenceControl.ConferenceEventHandler( _conferenceControl_OnRemoveConference); _conferenceControl = null; if (disposing) { if (components != null) { components.Dispose(); } } base.Dispose(disposing); }
/// <summary> /// schließt Konferenz ab /// </summary> public void Terminate() { // Konferenz aus Konferenzverwaltung entfernen _conferenceControl.RemoveConference(this); _conferenceControl = null; }
/// <summary> /// initialisiert Hauptobjekt /// </summary> public MainControl() { // Einstellungen initialisieren Settings.Initialize(); // Assembly ermitteln Assembly assembly = Assembly.GetAssembly(this.GetType()); // Protokoll initialisieren Logger.Initialize(Tools.GetFileName(assembly), Settings.Instance.LogEnabled, Settings.Instance.LogLevel); // Programmversion protokollieren Logger.Log.Info("[Info] -> " + Tools.GetFileName(assembly) + " " + Tools.GetFileVersion(assembly)); // Einstellungen protokollieren Logger.Log.Info("[Info] -> MonitorCode: " + Settings.Instance.MonitorCode + ", RefreshInterval: " + Settings.Instance.RefreshInterval + ", ChartHistoryLength: " + Settings.Instance.ChartHistoryLength + ", DeviceCode: " + Settings.Instance.DeviceCode + ", CoachingPermissionRequired: " + Settings.Instance.CoachingPermissionRequired + ", AutoStopCoaching: " + Settings.Instance.AutoStopCoaching + ", LogEnabled: " + Settings.Instance.LogEnabled + ", LogLevel: " + Settings.Instance.LogLevel); // Objektverwaltung initialisieren _frontendControl = new FrontendControl(this); _campaignControl = new CampaignControl(this); _conferenceControl = new ConferenceControl(this); _siteControl = new SiteControl(this); _deviceControl = new DeviceControl(this); // Schnittstelle zum Dialer initialisieren _monitor = new Monitor(); _monitor.OnAddFrontend += new Monitor.OnAddFrontendEventHandler( _monitor_OnAddFrontend); _monitor.OnRefreshFrontend += new Monitor.OnRefreshFrontendEventHandler( _monitor_OnRefreshFrontend); _monitor.OnRemoveFrontend += new Monitor.OnRemoveFrontendEventHandler( _monitor_OnRemoveFrontend); _monitor.OnAddCampaign += new Monitor.OnAddCampaignEventHandler( _monitor_OnAddCampaign); _monitor.OnRefreshCampaign += new Monitor.OnRefreshCampaignEventHandler( _monitor_OnRefreshCampaign); _monitor.OnRemoveCampaign += new Monitor.OnRemoveCampaignEventHandler( _monitor_OnRemoveCampaign); _monitor.OnAddConference += new Monitor.OnAddConferenceEventHandler( _monitor_OnAddConference); _monitor.OnRefreshConference += new Monitor.OnRefreshConferenceEventHandler( _monitor_OnRefreshConference); _monitor.OnRemoveConference += new Monitor.OnRemoveConferenceEventHandler( _monitor_OnRemoveConference); _monitor.OnAgentLost += new Monitor.OnAgentLostEventHandler( _monitor_OnAgentLost); _monitor.OnDeviceTerminated += new Monitor.OnDeviceTerminatedEventHandler( _monitor_OnDeviceTerminated); _monitor.OnConnectionLost += new Monitor.OnConnectionLostEventHandler( _monitor_OnConnectionLost); // Verbindung zum Dialer herstellen MonitorConnect(); MonitorLogonDialer(Settings.Instance.MonitorCode, Settings.Instance.RefreshInterval); }