Exemplo n.º 1
0
 public void OpenGuide()
 {
     if (SQLText != "")
     {
         (arControlView as ArsEdit).Focus();
         ArsGuide guide = new ArsGuide();
         guide.isArtezDB = isArtezDB;
         guide.sqlText   = sqlText;
         if ((arControlView as ArsEdit).Text.Contains("*"))
         {
             guide.whereStr = (arControlView as ArsEdit).ArName + " LIKE '" + (arControlView as ArsEdit).Text.Replace("*", "%") + "'";
         }
         guide.header       = (arControlView as ArsEdit).focusLabel.Text + " Rehberi";
         guide.returnField  = (arControlView as ArsEdit).ArName;
         guide.guideButton  = this;
         guide.focusTextBox = arControlView as ArsEdit;
         if ((arControlView as ArsEdit).GuideEdit != null)
         {
             guide.focusTextBoxControl = (arControlView as ArsEdit).GuideEdit as ArsEdit;
         }
         if (GuideFieldList.Count() > 0)
         {
             guide.fieldList = GuideFieldList;
         }
         guide.bigGuide      = BigGuide;
         guide.StartPosition = FormStartPosition.CenterScreen;
         guide.ShowDialog();
     }
 }
Exemplo n.º 2
0
        private void btnCariRehber_Click(object sender, EventArgs e)
        {
            ArsGuide guide = new ArsGuide();

            guide.sqlText             = "SELECT CARI_KODU, CARI_ADI FROM [TBLCARI]";
            guide.header              = "Cari Rehberi";
            guide.returnField         = "CARI_KODU";
            guide.focusTextBox        = CARI_KODU;
            guide.guideButton         = btnCariRehber;
            guide.focusTextBoxControl = CARI_ADI;
            guide.fieldList           = btnCariRehber.GuideFieldList;
            guide.bigGuide            = true;
            guide.StartPosition       = FormStartPosition.CenterScreen;
            guide.ShowDialog();
        }