private void Connect() { sControll = new settingsController(); if (sControll.isFirstRun) { sForm = new settings(sControll); sForm.ShowDialog(); } if (zApi != null) { zApi.stop(); } trMaps.Items.Clear(); trTriggers.Items.Clear(); zApi = new ZabbixConnection(sControll.host,sControll.user, sControll.pass); zApi.onUpdate += update_info; this.Cursor = Cursors.Wait; zApi.connect(); }
private void btnSettings_click(object sender, RoutedEventArgs e) { sForm = new settings(sControll); sForm.ShowDialog(); }