//约束绑定项目 private void restrainBindPro() { sqlText = "select distinct DCS_PROJECTID, DCS_PROJECTID+'‖' +DCS_PROJECT as DCS_PROJECT "; sqlText += "from TBPM_DEPCONSHEET where DCS_DEPID in ('03','01') "; if (ddlstatus.SelectedValue != "0" && ddlpersons.SelectedValue != "-请选择-") { sqlText += "and DCS_TYPE='" + ddlstatus.SelectedValue + "' "; sqlText += "and DCS_EDITORID='" + ddlpersons.SelectedValue + "' "; } else if (ddlstatus.SelectedValue != "0" && ddlpersons.SelectedValue == "-请选择-") { sqlText += "and DCS_TYPE='" + ddlstatus.SelectedValue + "' "; } else if (ddlstatus.SelectedValue == "0" && ddlpersons.SelectedValue != "-请选择-") { sqlText += "and DCS_EDITORID='" + ddlpersons.SelectedValue + "' "; } DataTable dt = DBCallCommon.GetDTUsingSqlText(sqlText); ComboBox2.DataSource = dt; ComboBox2.DataTextField = "DCS_PROJECT"; ComboBox2.DataValueField = "DCS_PROJECTID"; ComboBox2.DataBind(); ComboBox2.Items.Insert(0, new ListItem("全部", "0")); ComboBox2.SelectedIndex = 0; }
private void show_pay_terms() { if (User.Identity.IsAuthenticated) { SqlConnection con1000 = new SqlConnection(ConfigurationManager.AppSettings["connection"]); SqlCommand cmd1000 = new SqlCommand("select * from user_details where company_name='" + User.Identity.Name + "'", con1000); SqlDataReader dr1000; con1000.Open(); dr1000 = cmd1000.ExecuteReader(); if (dr1000.Read()) { company_id = Convert.ToInt32(dr1000["com_id"].ToString()); SqlConnection con = new SqlConnection(ConfigurationManager.AppSettings["connection"]); SqlCommand cmd = new SqlCommand("Select * from PaymentTerms where Com_Id='" + company_id + "' ORDER BY Pay_id asc", con); con.Open(); DataSet ds = new DataSet(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(ds); ComboBox2.DataSource = ds; ComboBox2.DataTextField = "Payment_terms"; ComboBox2.DataValueField = "Pay_id"; ComboBox2.DataBind(); ComboBox2.Items.Insert(0, new ListItem("Select pay terms", "1")); con.Close(); } con1000.Close(); } }
/// <summary> /// 初始化页面 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void Page_Load(object sender, EventArgs e) { string username = Request.QueryString["username"]; if (!userLogin.CheckLogin(username)) { string js = "alert('您没有登录或操作超时,请重新登录!');window.top.location.href='" + StaticInfo.LoginPage + "'"; System.Web.HttpContext.Current.Response.Write("<script type='text/javascript'>" + js + "</script>"); return; } if (!X.IsAjaxRequest) { if (Session["Devices"] != null) { List <string> list = (List <string>)Session["Devices"]; device_id = list[7]; TxtDeviceName.Text = list[1]; ComboBox1.SetValue(list[3]); ComboBox2.SetValue(list[4]); CmbDeviceType.SetValue(list[5]); endtime = end.InnerText = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); starttime = start.InnerText = DateTime.Now.AddDays(-7).ToString("yyyy-MM-dd HH:mm:ss"); DataTable da = deviceManager.GetDeviceTypeMode("device_type_id='" + list[5] + "'"); this.StoreSDeviceMode.DataSource = da; this.StoreSDeviceMode.DataBind(); CmbSBXH.SetValue(list[6]); } StoreDataBind(); } }
protected void ConfigureHeaderTemplates() { ComboBox1.HeaderTemplate = new HeaderTemplate("CUSTOMERS"); ComboBox2.HeaderTemplate = new HeaderTemplate((ComboBox1.SelectedText != String.Empty ? ComboBox1.SelectedText : "")); ComboBox3.HeaderTemplate = new HeaderTemplate((ComboBox2.SelectedText != String.Empty ? "Order #" + ComboBox2.SelectedText : "")); ComboBox1.DataBind(); ComboBox2.DataBind(); ComboBox3.DataBind(); }
private void BtnGenerate2_Click(object sender, EventArgs e) { ComboBox2.ResetText(); ComboBox2.Items.Clear(); Random r = new Random(); for (int i = 0; i < r.Next(1, 50) - 1; i++) { ComboBox2.Items.Add(r.Next(100, 999)); } }
//初始化绑定项目 private void comboBoxPro() { sqlText = "select distinct DCS_PROJECTID, DCS_PROJECTID+'‖' +DCS_PROJECT as DCS_PROJECT "; sqlText += "from TBPM_DEPCONSHEET where DCS_DEPID in ('03','01') "; DataTable dt = DBCallCommon.GetDTUsingSqlText(sqlText); ComboBox2.DataSource = dt; ComboBox2.DataTextField = "DCS_PROJECT"; ComboBox2.DataValueField = "DCS_PROJECTID"; ComboBox2.DataBind(); ComboBox2.Items.Insert(0, new ListItem("全部", "0")); ComboBox2.SelectedIndex = 0; }
//绑定工程ID private void comboxEngID() { sqlText = "select TSA_ID, TSA_ENGNAME from TBPM_TCTSASSGN "; sqlText += "where TSA_TCCLERK='" + Session["UserID"] + "' "; sqlText += "and TSA_PJID='" + ComboBox1.SelectedItem.Text.Trim() + "' "; DataTable dt = DBCallCommon.GetDTUsingSqlText(sqlText); ComboBox2.DataSource = dt; ComboBox2.DataTextField = "TSA_ID"; ComboBox2.DataValueField = "TSA_ENGNAME"; ComboBox2.DataBind(); ComboBox2.Items.Insert(0, new ListItem("全部", "0")); ComboBox2.SelectedIndex = 0; }
protected void ComboBox1_OnSelectedIndexChanged(object sender, EventArgs e) { sds2.SelectParameters[0].DefaultValue = ComboBox1.SelectedValue; sds3.SelectParameters[0].DefaultValue = ""; ComboBox2.Enabled = true; ComboBox2.Items.Clear(); ComboBox2.SelectedIndex = -1; ComboBox2.SelectedValue = ""; ComboBox2.DataBind(); ComboBox3.Enabled = false; ComboBox3.Items.Clear(); ComboBox3.SelectedIndex = -1; }
private void UpdateMe() { Objects.Location loc; string str = ""; if(ComboBox2.InvokeRequired) { ComboBox2.Invoke((MethodInvoker)delegate { str = ComboBox2.Text; }); loc = GetLocation(str); } else { str = ComboBox2.Text; loc = GetLocation(str); } if(TextBox1.InvokeRequired) { TextBox1.Invoke((MethodInvoker)delegate { TextBox1.Text = loc.X.ToString(); }); } else { TextBox1.Text = loc.X.ToString(); } if (TextBox2.InvokeRequired) { TextBox2.Invoke((MethodInvoker)delegate { TextBox2.Text = loc.Y.ToString(); }); } else { TextBox2.Text = loc.Y.ToString(); } if (TextBox3.InvokeRequired) { TextBox3.Invoke((MethodInvoker)delegate { TextBox3.Text = loc.Z.ToString(); }); } else { TextBox3.Text = loc.Z.ToString(); } }
private void Start() { comboBoxList = new GUIContent[5]; comboBoxList[0] = new GUIContent("Thing 1"); comboBoxList[1] = new GUIContent("Thing 2"); comboBoxList[2] = new GUIContent("Thing 3"); comboBoxList[3] = new GUIContent("Thing 4"); comboBoxList[4] = new GUIContent("Thing 5"); listStyle.normal.textColor = Color.white; listStyle.onHover.background = listStyle.hover.background = new Texture2D(2, 2); listStyle.padding.left = listStyle.padding.right = listStyle.padding.top = listStyle.padding.bottom = 4; comboBoxControl = new ComboBox2(new Rect(50, 100, 100, 20), comboBoxList[0], comboBoxList, "button", "box", listStyle); comboBoxControl2 = new ComboBox2(new Rect(150, 300, 100, 20), comboBoxList[0], comboBoxList, "button", "box", listStyle); }
void comboBoxData() { DataTable dt = new DataTable(); dt.Columns.Add("PT_PJID"); dt.Columns.Add("PT_PJNAME"); dt.Rows.Add("全部", "0"); string sql = "select distinct DCS_PROJECTID, DCS_PROJECT from TBPM_DEPCONSHEET";//读取所有的项目名称 SqlDataReader dr1 = DBCallCommon.GetDRUsingSqlText(sql); while (dr1.Read()) { DataRow dr = dt.NewRow(); dr[0] = dr1["DCS_PROJECTID"].ToString() + "|" + dr1["DCS_PROJECT"].ToString(); dr[1] = dr1["DCS_PROJECTID"].ToString(); dt.Rows.Add(dr); } dr1.Close(); ComboBox2.DataSource = dt; ComboBox2.DataTextField = "PT_PJID"; ComboBox2.DataValueField = "PT_PJNAME"; ComboBox2.DataBind(); }
private void Button3_Click(object sender, EventArgs e) { try { int X = 0; if (txtFileName.Text == "") { Ep.SetError(txtFileName, "please select/Enter fileName....."); txtFileName.Focus(); return; } if (ComboBox2.Text == "") { Ep.SetError(ComboBox2, "please select Engine File....."); ComboBox2.Focus(); return; } if (ComboBox3.Text == "") { Ep.SetError(ComboBox3, "please select Sequence File....."); ComboBox3.Focus(); return; } if (ComboBox4.Text == "") { Ep.SetError(ComboBox4, "please select Limit File....."); ComboBox4.Focus(); return; } if (ComboBox5.Text == "") { Ep.SetError(ComboBox5, "please select Correction Standard....."); ComboBox5.Focus(); return; } if (ComboBox6.Text == "") { Ep.SetError(ComboBox6, "please Test Type Standard....."); ComboBox6.Focus(); return; } for (X = 1; X < (DGPrj.RowCount); X++) { if (DGPrj[1, X].Value == null) { Ep.SetError(DGPrj, "please Enter the Value ....."); DGPrj.Focus(); return; } else { Ep.Clear(); } } Format_Cells(); X = 0; flg_New = true; while (X < PrjGV.RowCount - 1) { if (txtFileName.Text == PrjGV[0, X].Value.ToString()) { flg_New = false; Rw = PrjGV.CurrentRow.Index; break; } else { flg_New = true; } X++; } Rw = PrjGV.CurrentRow.Index; if (flg_New == false) { Global.Open_Connection("General", "con"); MySqlCommand cmd = new MySqlCommand(); cmd.CommandText = "UPDATE tblProject SET " + " EngFile = '" + ComboBox2.Text + "'," + " ProgFile = '" + ComboBox3.Text + "'," + " LimitFile = '" + ComboBox4.Text + "'," + " CorrFile = '" + ComboBox5.Text + "'," + " Test_Type = '" + ComboBox6.Text + "'," + " R_power = '" + DGPrj[1, 0].Value.ToString() + "'," + " R_rpm = '" + DGPrj[1, 1].Value.ToString() + "'," + " MT_Torque = '" + DGPrj[1, 2].Value.ToString() + "'," + " MT_rpm = '" + DGPrj[1, 3].Value.ToString() + "'," + " Fly_rpm = '" + DGPrj[1, 4].Value.ToString() + "'," + " Idle_rpm = '" + DGPrj[1, 5].Value.ToString() + "'," + " Max_Tq = '" + DGPrj[1, 6].Value.ToString() + "'," + " Tq_Range = '" + DGPrj[1, 7].Value.ToString() + "'," + " PTO_Ratio = '" + DGPrj[1, 8].Value.ToString() + "'," + " PM_Log = '" + DGPrj[1, 9].Value.ToString() + "'" + " WHERE ProjectFile = '" + txtFileName.Text + "'"; cmd.Connection = Global.con; cmd.ExecuteNonQuery(); Load_DataGrid(); MessageBox.Show("File Updated ....."); } else if (flg_New == true) { Global.Open_Connection("General", "con"); MySqlCommand cmd = new MySqlCommand(); cmd.CommandText = "INSERT INTO tblProject VALUES ('" + txtFileName.Text + "','" + ComboBox2.Text + "','" + ComboBox3.Text + "','" + ComboBox4.Text + "','" + ComboBox5.Text + "','" + ComboBox6.Text + "','" + DGPrj[1, 0].Value + "','" + DGPrj[1, 1].Value + "','" + DGPrj[1, 2].Value + "','" + DGPrj[1, 3].Value + "','" + DGPrj[1, 4].Value + "','" + DGPrj[1, 5].Value + "','" + DGPrj[1, 6].Value + "','" + DGPrj[1, 7].Value + "','" + DGPrj[1, 8].Value + "','" + DGPrj[1, 9].Value + "')"; cmd.Connection = Global.con; cmd.ExecuteNonQuery(); Load_DataGrid(); MessageBox.Show("File Saved ....."); } } catch (Exception ex) { MessageBox.Show("Error Code:- 11004" + ex.Message); } }
void ReleaseDesignerOutlets() { if (AdvancedSearchBox != null) { AdvancedSearchBox.Dispose(); AdvancedSearchBox = null; } if (AngebotNr != null) { AngebotNr.Dispose(); AngebotNr = null; } if (ArchiveButton1 != null) { ArchiveButton1.Dispose(); ArchiveButton1 = null; } if (AufWunsch != null) { AufWunsch.Dispose(); AufWunsch = null; } if (AusstattungDo != null) { AusstattungDo.Dispose(); AusstattungDo = null; } if (AusstattungOd != null) { AusstattungOd.Dispose(); AusstattungOd = null; } if (Bezeichnung != null) { Bezeichnung.Dispose(); Bezeichnung = null; } if (Binderabstand != null) { Binderabstand.Dispose(); Binderabstand = null; } if (Binderabstand2 != null) { Binderabstand2.Dispose(); Binderabstand2 = null; } if (BinderabstandCa != null) { BinderabstandCa.Dispose(); BinderabstandCa = null; } if (Breite != null) { Breite.Dispose(); Breite = null; } if (Breite2 != null) { Breite2.Dispose(); Breite2 = null; } if (BreiteCa != null) { BreiteCa.Dispose(); BreiteCa = null; } if (BreiteN != null) { BreiteN.Dispose(); BreiteN = null; } if (Cena1 != null) { Cena1.Dispose(); Cena1 = null; } if (CenaMontaz != null) { CenaMontaz.Dispose(); CenaMontaz = null; } if (ComboBox1 != null) { ComboBox1.Dispose(); ComboBox1 = null; } if (ComboBox2 != null) { ComboBox2.Dispose(); ComboBox2 = null; } if (ComboBox5 != null) { ComboBox5.Dispose(); ComboBox5 = null; } if (ComboBoxRaport != null) { ComboBoxRaport.Dispose(); ComboBoxRaport = null; } if (Dach != null) { Dach.Dispose(); Dach = null; } if (Data != null) { Data.Dispose(); Data = null; } if (DataOferty != null) { DataOferty.Dispose(); DataOferty = null; } if (DataPotwierdzenia != null) { DataPotwierdzenia.Dispose(); DataPotwierdzenia = null; } if (DeleteButton0 != null) { DeleteButton0.Dispose(); DeleteButton0 = null; } if (DeleteButton1 != null) { DeleteButton1.Dispose(); DeleteButton1 = null; } if (DeleteButton2 != null) { DeleteButton2.Dispose(); DeleteButton2 = null; } if (DeleteButton3 != null) { DeleteButton3.Dispose(); DeleteButton3 = null; } if (DeleteButton5 != null) { DeleteButton5.Dispose(); DeleteButton5 = null; } if (Down1 != null) { Down1.Dispose(); Down1 = null; } if (Down2 != null) { Down2.Dispose(); Down2 = null; } if (Down3 != null) { Down3.Dispose(); Down3 = null; } if (Firma != null) { Firma.Dispose(); Firma = null; } if (Firsthohe != null) { Firsthohe.Dispose(); Firsthohe = null; } if (Firsthohe2 != null) { Firsthohe2.Dispose(); Firsthohe2 = null; } if (FirsthoheCa != null) { FirsthoheCa.Dispose(); FirsthoheCa = null; } if (FirsthoheN != null) { FirsthoheN.Dispose(); FirsthoheN = null; } if (Gesamtpreis != null) { Gesamtpreis.Dispose(); Gesamtpreis = null; } if (Gewicht != null) { Gewicht.Dispose(); Gewicht = null; } if (Gewicht2 != null) { Gewicht2.Dispose(); Gewicht2 = null; } if (Hauptprofil1 != null) { Hauptprofil1.Dispose(); Hauptprofil1 = null; } if (Hauptprofil2 != null) { Hauptprofil2.Dispose(); Hauptprofil2 = null; } if (Hauptprofil3 != null) { Hauptprofil3.Dispose(); Hauptprofil3 = null; } if (HauptProfilGewicht != null) { HauptProfilGewicht.Dispose(); HauptProfilGewicht = null; } if (Ilosc1 != null) { Ilosc1.Dispose(); Ilosc1 = null; } if (InfoLabel1 != null) { InfoLabel1.Dispose(); InfoLabel1 = null; } if (Kedernut != null) { Kedernut.Dispose(); Kedernut = null; } if (Komentarz != null) { Komentarz.Dispose(); Komentarz = null; } if (KWert1 != null) { KWert1.Dispose(); KWert1 = null; } if (LabelTest1 != null) { LabelTest1.Dispose(); LabelTest1 = null; } if (LabelTest2 != null) { LabelTest2.Dispose(); LabelTest2 = null; } if (Lange2 != null) { Lange2.Dispose(); Lange2 = null; } if (Lange3 != null) { Lange3.Dispose(); Lange3 = null; } if (LangeCa != null) { LangeCa.Dispose(); LangeCa = null; } if (LangeN != null) { LangeN.Dispose(); LangeN = null; } if (Leichbauhalle != null) { Leichbauhalle.Dispose(); Leichbauhalle = null; } if (Liefertermin != null) { Liefertermin.Dispose(); Liefertermin = null; } if (Lieferungskosten != null) { Lieferungskosten.Dispose(); Lieferungskosten = null; } if (Lieferzeit != null) { Lieferzeit.Dispose(); Lieferzeit = null; } if (ListaOferty != null) { ListaOferty.Dispose(); ListaOferty = null; } if (Mail != null) { Mail.Dispose(); Mail = null; } if (Mail_cena != null) { Mail_cena.Dispose(); Mail_cena = null; } if (Mail_miasto != null) { Mail_miasto.Dispose(); Mail_miasto = null; } if (Mail_mm != null) { Mail_mm.Dispose(); Mail_mm = null; } if (MontageAGB != null) { MontageAGB.Dispose(); MontageAGB = null; } if (MontageBox != null) { MontageBox.Dispose(); MontageBox = null; } if (MontageSwitch != null) { MontageSwitch.Dispose(); MontageSwitch = null; } if (Name != null) { Name.Dispose(); Name = null; } if (NHN != null) { NHN.Dispose(); NHN = null; } if (NrPotwierdzenia != null) { NrPotwierdzenia.Dispose(); NrPotwierdzenia = null; } if (OpenButton1 != null) { OpenButton1.Dispose(); OpenButton1 = null; } if (Plec != null) { Plec.Dispose(); Plec = null; } if (Postlietzahl != null) { Postlietzahl.Dispose(); Postlietzahl = null; } if (PriceText1 != null) { PriceText1.Dispose(); PriceText1 = null; } if (PriceText2 != null) { PriceText2.Dispose(); PriceText2 = null; } if (RaportType != null) { RaportType.Dispose(); RaportType = null; } if (ReadyButton1 != null) { ReadyButton1.Dispose(); ReadyButton1 = null; } if (SaveButton1 != null) { SaveButton1.Dispose(); SaveButton1 = null; } if (Schneelast != null) { Schneelast.Dispose(); Schneelast = null; } if (Schneelast2 != null) { Schneelast2.Dispose(); Schneelast2 = null; } if (SearchCheckBox != null) { SearchCheckBox.Dispose(); SearchCheckBox = null; } if (SearchDlugosc != null) { SearchDlugosc.Dispose(); SearchDlugosc = null; } if (SearchSchneelast != null) { SearchSchneelast.Dispose(); SearchSchneelast = null; } if (SearchSzerokosc != null) { SearchSzerokosc.Dispose(); SearchSzerokosc = null; } if (SearchText != null) { SearchText.Dispose(); SearchText = null; } if (SearchTextField != null) { SearchTextField.Dispose(); SearchTextField = null; } if (SearchTypHali != null) { SearchTypHali.Dispose(); SearchTypHali = null; } if (SearchWindlast != null) { SearchWindlast.Dispose(); SearchWindlast = null; } if (SearchWysokosc != null) { SearchWysokosc.Dispose(); SearchWysokosc = null; } if (Select2 != null) { Select2.Dispose(); Select2 = null; } if (Stadt != null) { Stadt.Dispose(); Stadt = null; } if (Stallhalle != null) { Stallhalle.Dispose(); Stallhalle = null; } if (Starke1 != null) { Starke1.Dispose(); Starke1 = null; } if (Starke2 != null) { Starke2.Dispose(); Starke2 = null; } if (StraBe != null) { StraBe.Dispose(); StraBe = null; } if (Suma1 != null) { Suma1.Dispose(); Suma1 = null; } if (Switch3 != null) { Switch3.Dispose(); Switch3 = null; } if (SwitchTab1 != null) { SwitchTab1.Dispose(); SwitchTab1 = null; } if (Tab0 != null) { Tab0.Dispose(); Tab0 = null; } if (Tab1 != null) { Tab1.Dispose(); Tab1 = null; } if (Tab2 != null) { Tab2.Dispose(); Tab2 = null; } if (Tab3 != null) { Tab3.Dispose(); Tab3 = null; } if (Tab4 != null) { Tab4.Dispose(); Tab4 = null; } if (Tab5 != null) { Tab5.Dispose(); Tab5 = null; } if (Tab6 != null) { Tab6.Dispose(); Tab6 = null; } if (Tab7 != null) { Tab7.Dispose(); Tab7 = null; } if (Tabela1 != null) { Tabela1.Dispose(); Tabela1 = null; } if (Tabela2 != null) { Tabela2.Dispose(); Tabela2 = null; } if (Tabela3 != null) { Tabela3.Dispose(); Tabela3 = null; } if (Tabela5 != null) { Tabela5.Dispose(); Tabela5 = null; } if (TabNavi != null) { TabNavi.Dispose(); TabNavi = null; } if (TechnischeDaten != null) { TechnischeDaten.Dispose(); TechnischeDaten = null; } if (Telefonnummer != null) { Telefonnummer.Dispose(); Telefonnummer = null; } if (ToreUndTuren != null) { ToreUndTuren.Dispose(); ToreUndTuren = null; } if (Traufhohe != null) { Traufhohe.Dispose(); Traufhohe = null; } if (Traufhohe2 != null) { Traufhohe2.Dispose(); Traufhohe2 = null; } if (TraufhoheCa != null) { TraufhoheCa.Dispose(); TraufhoheCa = null; } if (TraufhoheN != null) { TraufhoheN.Dispose(); TraufhoheN = null; } if (Unterlagen != null) { Unterlagen.Dispose(); Unterlagen = null; } if (UnterlagenBox != null) { UnterlagenBox.Dispose(); UnterlagenBox = null; } if (UnterlagenSwitch != null) { UnterlagenSwitch.Dispose(); UnterlagenSwitch = null; } if (Up1 != null) { Up1.Dispose(); Up1 = null; } if (Up2 != null) { Up2.Dispose(); Up2 = null; } if (Up3 != null) { Up3.Dispose(); Up3 = null; } if (UWert1 != null) { UWert1.Dispose(); UWert1 = null; } if (UWert2 != null) { UWert2.Dispose(); UWert2 = null; } if (Vat2 != null) { Vat2.Dispose(); Vat2 = null; } if (Vorname != null) { Vorname.Dispose(); Vorname = null; } if (Windlast != null) { Windlast.Dispose(); Windlast = null; } if (Windlast2 != null) { Windlast2.Dispose(); Windlast2 = null; } if (WypChange1 != null) { WypChange1.Dispose(); WypChange1 = null; } if (WypChange2 != null) { WypChange2.Dispose(); WypChange2 = null; } if (WypChange3 != null) { WypChange3.Dispose(); WypChange3 = null; } if (X1 != null) { X1.Dispose(); X1 = null; } if (Y1 != null) { Y1.Dispose(); Y1 = null; } if (Zugbandhohe != null) { Zugbandhohe.Dispose(); Zugbandhohe = null; } if (Zugbandhohe2 != null) { Zugbandhohe2.Dispose(); Zugbandhohe2 = null; } if (ZugbandhoheCa != null) { ZugbandhoheCa.Dispose(); ZugbandhoheCa = null; } if (SearchList != null) { SearchList.Dispose(); SearchList = null; } if (SearchEmail != null) { SearchEmail.Dispose(); SearchEmail = null; } }