예제 #1
0
파일: Frm_MSG.cs 프로젝트: oerb/DTO
 // One search Buttonhandler
 // btn_typ: "ma" (Mandant), "kr" (Kreditor), "ob" Objekt, "ha" Haus,
 // "we" WE, "me" MSGtyp
 private void btn_search_click(object sender, EventArgs e)
 {
     string btn_typ = "none";
     if (sender == btn_mandant)
         { btn_typ = "ma"; }
     // TODO: btn_mandant rename to btn_unternehmen
     else if (sender == btn_mandant1)
         { btn_typ = "m1"; }
     else if (sender == btn_kreditor)
         { btn_typ = "kr"; }
     else if (sender == btn_objekt)
         { btn_typ = "ob"; }
     else if (sender == btn_MSGtyp)
         { btn_typ = "me"; }
     else if (sender == btn_haus)
         { btn_typ = "ha"; }
     else if (sender == btn_wohnung)
         { btn_typ = "wo"; }
     else if (sender == btn_mieter)
         { btn_typ = "mi"; }
     else if (sender == btn_Adresse)
         { btn_typ = "ad"; }
     else
         { btn_typ = "none"; }
     // Open Form
     Frm_Search frm_Search = new Frm_Search(btn_typ);
     // frm_Search.MdiParent = this;
     frm_Search.ParentForm = this; // TODO: Replace this by FormClass inherited MdiParent
     //DialogResult result = frm_Search.ShowDialog();
     frm_Search.Show(); // TODO: Do not know what is better to use. Show or ShowDialog ... test it
 }
예제 #2
0
파일: Frm_MSG.cs 프로젝트: oerb/DTO
 private void btn_adr_as_mieter_Click(object sender, EventArgs e)
 {
     if (this.txt_Adresse.Text != "")
     {
          // Open Form
         Frm_Search frm_Search = new Frm_Search("MiAd");
         // frm_Search.MdiParent = this;
         frm_Search.ParentForm = this; // TODO: Replace this by FormClass inherited MdiParent
         //DialogResult result = frm_Search.ShowDialog();
         frm_Search.Show(); // TODO: Do not know what is better to use. Show or ShowDialog ... test it
     }
 }