public void Präsentiire(Optimat.EveO.Nuzer.CustomBotServer Präsentiirte) { Int64? BeginZait = null; string ApiUri = null; Int64? ExceptionLezteZait = null; string ExceptionLezteSictString = null; bool IsListening = false; int? ListeRequestAnzaal = null; Int64? ListeRequestLezteZait = null; Int64? ListeRequestMesungLezteZait = null; try { if (null == Präsentiirte) { return; } var ExceptionLezte = Präsentiirte.ListeExceptionLezte; BeginZait = Präsentiirte.BeginZait; ApiUri = Präsentiirte.ApiUri; IsListening = Präsentiirte.IsListening; ListeRequestAnzaal = Präsentiirte.RequestAnzaal; ListeRequestLezteZait = Präsentiirte.ListeRequestLezteZait; ListeRequestMesungLezteZait = Präsentiirte.RequestedMeasurementTimeLezte; var VonBotScnapscusLezte = Präsentiirte.VonBotScnapscusLezte; if (null != VonBotScnapscusLezte) { } if (null != ExceptionLezte.Wert) { ExceptionLezteZait = ExceptionLezte.Zait; ExceptionLezteSictString = Bib3.Glob.SictString(ExceptionLezte.Wert); } } finally { this.Präsentiirte = Präsentiirte; TextBoxApiUri.Text = ApiUri; this.BeginZait.Präsentiire(BeginZait); ListeExceptionLezteZait.Präsentiire(ExceptionLezteZait); TextBoxListeExceptionLezteSictString.Text = ExceptionLezteSictString; CheckBoxIsListening.IsChecked = IsListening; TextBoxListeRequestAnzaal.Text = ListeRequestAnzaal.ToString(); this.ListeRequestLezteZait.Präsentiire(ListeRequestLezteZait); this.ListeRequestMesungLezteZait.Präsentiire(ListeRequestMesungLezteZait); } }
void AktualisiireTailCustomBotServer() { var CustomBotServerFraigaabe = CheckBoxCustomBotFraigaabe.IsChecked ?? false; var AdreseTcp = TextBoxCustomBotServerAdreseTcp.Text.TryParseInt(); var CustomBotServerErhalte = false; if (CustomBotServerFraigaabe) { var CustomBotServer = this.CustomBotServer; if (null != CustomBotServer && CustomBotServer.IsListening) { if (CustomBotServer.AdreseTcp == AdreseTcp) { CustomBotServerErhalte = true; } } } if (!CustomBotServerErhalte) { var CustomBotServer = this.CustomBotServer; if (null != CustomBotServer) { CustomBotServer.Stop(); this.CustomBotServer = null; } } if (!CustomBotServerFraigaabe) { return; } { if (!AdreseTcp.HasValue) { throw new ArgumentNullException("AdreseTcp"); } var CustomBotServer = new Optimat.EveO.Nuzer.CustomBotServer(AdreseTcp.Value); this.CustomBotServer = CustomBotServer; } }