private void btnKaydet_Click(object sender, EventArgs e) { if (anaForm != null) { anaForm.aciklama = ACIKLAMA.GetDataStr(); } ArsLibrary.CloseVirtualKeyboard(); this.Close(); }
protected void ArsEditLeaveEvent(object sender, EventArgs e) { if (ExitCheck && Text != "" && controlButton != null && controlButton.ButtonType == EnmButtonType.Guide && controlButton.SQLText != "") { string tableName = controlButton.SQLText.BetweenChars('[', ']'); string whereStr = controlButton.SQLText.BetweenStrings("/*WS*/", "/*WE*/"); if (tableName != "") { ArsSQLQry qryCheck = new ArsSQLQry(); qryCheck.SQLText = "SELECT " + ArName; if (GuideEdit != null) { qryCheck.SQLText += ", " + GuideEdit.ArName; } qryCheck.SQLText += " FROM " + tableName + " WHERE " + ArName + " LIKE '" + Text + "'"; if (whereStr != "") { qryCheck.SQLText += " AND " + whereStr; } qryCheck.Open(); if (qryCheck.DataCount() == 0) { ExitError = true; ArsMessage.ShowMessage("Hata", ArName.ArsFirstUp() + ": " + Text + " Bulunamadı..."); Focus(); } else { Text = qryCheck.GetString(ArName); if (GuideEdit != null) { GuideEdit.Text = qryCheck.GetString(GuideEdit.ArName); } } } } else if (ExitCheck && Text == "" && GuideEdit != null) { GuideEdit.Text = ""; } if (useVirtualKeyboard) { ArsLibrary.CloseVirtualKeyboard(); } arsExit(e); ExitError = false; }
private void btnIptal_Click(object sender, EventArgs e) { ArsLibrary.CloseVirtualKeyboard(); this.Close(); }