Author: semt20
LOGO,SQL,VISUAL STUDIO,C#,DELPHI, PHOTOSHOP, WORDPRESS, PS, PHP, SMS VIA PC, EXCEL,DEVEXPRESS,LOGO MUHASEBE, LOGO ERP,SQL,MYSQL, SQL SERVER, ETC...
Visual studio bunifu component
To install Bunifu:
1. Open Visual Studio
2. Create a new project
3. Right click in the toolbox and click “choose items”
4. Click browse and select the Bunifu .dll
5. You’re finished. You should now see the Bunifu controls in your toolbox.
Google Drive\visual studio\BUNIFU
1. Open Visual Studio
2. Create a new project
3. Right click in the toolbox and click “choose items”
4. Click browse and select the Bunifu .dll
5. You’re finished. You should now see the Bunifu controls in your toolbox.
Google Drive\visual studio\BUNIFU
Visual studio Projeni lisanslama olaylari
Özetle CryptoLicesnsi kur ve crackle sonra aç programı visual studioda proje yeni de refereransa cyrptolicensin kurulduğu klasörden LogicNP.CryptoLicensing.dll ekle. Ve cryptolicense programına geri geç project get validationdan kodunu al.
Google Drive\visual studio\cryptolisans\CryptoLicensingNet2015Enterprise.rar
Aşağıda serili ama tam calısmıyor
string licOrSerial = “3SNK-JR68-VWR4-CU3U-DK5T-6M4Y-TGNU-W99Z”; // may be entered by user
CryptoLicense lic = new CryptoLicense(“AMAAMACcdnLRtdM/BVep5vzxoSJkHW04yTbB6RBlL3AebAgDpcaAJ5m3ygqP8ueGL1ZQA1EDAAEAAQ==”);
lic.LicenseServiceURL = “<>”;
// Try to validate serial and retrieve license against the serial
SerialValidationResult result = lic.GetLicenseFromSerial(licOrSerial);
if(result == SerialValidationResult.Failed)
{
// ‘licOrSerial’ is in serial form but validation of serial failed
MessageBox.Show(“Serial Validation Failed”);
return;
}
elseif (result == SerialValidationResult.NotASerial)
{
// ‘licOrSerial’ is not a serial but may be a license, set lic.LicenseCode and validate it
lic.LicenseCode = licOrSerial;
}
else//if (result == SerialValidationResult.Success)
{
// CryptoLicense.GetLicenseFromSerial set the lic.LicenseCode with the retrieved license code
// validate it
}
// Validate license by querying Status property
if(lic.Status != LicenseStatus.Valid)
{
MessageBox.Show(“License Validation Failed”);
return;
}
To start using CryptoLicensing for the licensing and copy-protection of your software, follow these simple steps:
In CryptoLicensing Generator:
- Start the CryptoLicensing Generator application from the Start Menu.
- Create a new license project : File menu –> Create New Project –> accept default settings by clicking OK button.
- Save the license project : File menu –> Save Project.
- Get the validation code for your project : Project menu –> Get Validation Key And Code.
- Generate a simple license code without any settings : simply click the Generate button. A new license code will be generated and displayed in the bottom textbox.
In Your Software Source Code Project:
- Reference the LogicNP.CryptoLicensing.dll file from your project. This is the CryptoLicensing validation module. Note: For Silverlight, Windows Phone 7, or other kinds of projects, see Deploying Your Software for the exact assembly to reference.
- At the top of your code file, add the following namespace declarations:
using LogicNP.CryptoLicensing;
- Write simple license validation code as follows:
CryptoLicense lic = new CryptoLicense();
lic.ValidationKey = “validation key obtained in step #4 above”;
lic.LicenseCode = “license code generated in step #5 above”;
lic.ValidationKey = “validation key obtained in step #4 above”;
lic.LicenseCode = “license code generated in step #5 above”;
// Validate the license using .Status property
if (lic.Status != LicenseStatus.Valid)
throw new Exception(“license validation failed”);
if (lic.Status != LicenseStatus.Valid)
throw new Exception(“license validation failed”);
That’s it! Its that simple to start using CryptoLicensing for the licensing of your software.
Further Code Samples
The above code is a very simplistic code. Typically, you will not hard-code a license code in your software in the above manner, but load it as follows:
…
…
// Load license from the registry
lic.StorageMode = LicenseStorageMode.ToRegistry;
if (lic.Load() == false)
throw new Exception(“License could not be loaded”);
lic.StorageMode = LicenseStorageMode.ToRegistry;
if (lic.Load() == false)
throw new Exception(“License could not be loaded”);
// Validate the license using .Status property
if (lic.Status != LicenseStatus.Valid)
throw new Exception(“license validation failed”);
if (lic.Status != LicenseStatus.Valid)
throw new Exception(“license validation failed”);
For the load method to succeed, there should be a previously saved license code in the first place. The license code is saved by calling the CryptoLicense.Save method in another part of your software which prompts the user for the license code. If you use the CryptoLicense.ShowEvaluationInfoDialog method to prompt the user for the license code, the dialog will automatically call the Save method for you.
If you are validating licenses requiring communication with the license service, make sure you specify the license service URL before validating the license code as follows:
…
…
lic.LicenseServiceURL = “http://www.mysite.com/LicenseService/Service.asmx”
// Validate the license using .Status property
if (lic.Status != LicenseStatus.Valid)
throw new Exception(“license validation failed”);
if (lic.Status != LicenseStatus.Valid)
throw new Exception(“license validation failed”);
Further code samples demonstrating a variety of common licensing scenarios can be found in the Samples folder under the installation folder.
Visual studio c# dlleri projene exeye gömme
projeyi ac solution exlporerda en yukarı sag tıkla manage nuget packetse bas yada
view others package manager consola bunu yaz indirsin Install-Package Costura.Fody
indirdikten sonra dllerin exele gömülü olur
view others package manager consola bunu yaz indirsin Install-Package Costura.Fody
indirdikten sonra dllerin exele gömülü olur
visual c# gridview with parameter
private void button1_Click_3(object sender, EventArgs e)
{
string connectionString = null;
SqlConnection cnn;
connectionString = "Server = " + AYARLAR.txtServerc + "; Database = " + AYARLAR.txtVeritabanic + "; User Id = " + AYARLAR.txtKullanicic + "; Password = " + AYARLAR.txtParolac;
FileInfo file = new FileInfo(Application.StartupPath + "\\SQL.txt");
string script = file.OpenText().ReadToEnd();
cnn = new SqlConnection(connectionString);
SqlDataAdapter da = new SqlDataAdapter(script, cnn);
da.SelectCommand.Parameters.AddWithValue("@tarih1", dateEdit1.Text);
da.SelectCommand.Parameters.AddWithValue("@tarih2", dateEdit2.Text);
DataTable dt = new DataTable();
da.Fill(dt);
gridControl1.DataSource = dt;
gridView1.ExpandAllGroups();
gridView1.GroupFooterShowMode = GroupFooterShowMode.VisibleAlways;
// Create and setup the first summary item.
GridGroupSummaryItem item1 = new GridGroupSummaryItem();
item1.FieldName = "Odeme Tutari";
item1.SummaryType = DevExpress.Data.SummaryItemType.Sum;
item1.DisplayFormat = "Odeme Tutari {0:c2}";
item1.ShowInGroupColumnFooter = gridView1.Columns["Odeme Tutari"];
gridView1.GroupSummary.Add(item1);
{
//GridView RunTime Gruplama
GridColumn Grupla = gridView1.Columns["Odeme Tipi"];
gridView1.BeginSort();
try
{
gridView1.ClearGrouping();
Grupla.GroupIndex = 0;
}
finally
{
gridView1.EndSort();
}
gridView1.ExpandAllGroups();
}
gridView1.Columns["Odeme Tutari"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
gridView1.Columns["Odeme Tutari"].SummaryItem.DisplayFormat = "Odeme Toplam = {0}";
gridView1.BestFitColumns();
gridView1.Columns["Odeme Tutari"].DisplayFormat.FormatType = FormatType.Numeric;
gridView1.Columns["Odeme Tutari"].DisplayFormat.FormatString = "c2";
gridView1.Columns["Iade Tutari"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
gridView1.Columns["Iade Tutari"].SummaryItem.DisplayFormat = "Iade Toplam = {0}";
gridView1.BestFitColumns();
gridView1.Columns["Iade Tutari"].DisplayFormat.FormatType = FormatType.Numeric;
gridView1.Columns["Iade Tutari"].DisplayFormat.FormatString = "c2";
gridView1.Columns["Odeme Tipi"].SortOrder = DevExpress.Data.ColumnSortOrder.Descending;
gridView1.BestFitColumns();
}
Visual c# ms sql database çifte kontrol
SqlConnection connectionString = new SqlConnection("Server = " + ondegerler.SQLBAGLANTISI_KAYNAK + "; Database = " + ondegerler.SQLBAGLANTISI_VERITABANI + "; User Id = " + ondegerler.SQLBAGLANTISI_KULLANICI + "; Password = " + ondegerler.SQLBAGLANTISI_PAROLA);
connectionString.Open();
{
SqlCommand sqlcom2 = new SqlCommand("select count(malzeme_kodu) from tbl_malzeme where tbl_malzeme.malzeme_kodu = '" + Text_malzeme_kodu.Text + "'", connectionString);
if (sqlcom2.ExecuteScalar() != null)
{
int UserExist = (int)sqlcom2.ExecuteScalar();
if (UserExist > 0)
{
MessageBox.Show("Bu İsimde Malzeme Kodu Daha Önceden Yaratılmıştır!");
}
}
visual c# update ms sql table from query inside txt file
// MessageBox.Show(Text_malzeme_grubu.EditValue.ToString());
// string connectionString = null;
SqlConnection connectionString = new SqlConnection("Server = " + ondegerler.SQLBAGLANTISI_KAYNAK + "; Database = " + ondegerler.SQLBAGLANTISI_VERITABANI + "; User Id = " + ondegerler.SQLBAGLANTISI_KULLANICI + "; Password = " + ondegerler.SQLBAGLANTISI_PAROLA);
connectionString.Open();
FileInfo file = new FileInfo(Application.StartupPath + "\\tbl_cari_kartlari_duzenle_kaydet.txt");
string duzenle = file.OpenText().ReadToEnd();
//MessageBox.Show(silinecekkod.ToString());
SqlCommand sqlcom = new SqlCommand(duzenle, connectionString);
sqlcom.Parameters.AddWithValue("@cari_turu", Text_cari_turu.Text.Trim());
sqlcom.Parameters.AddWithValue("@cari_adi", Text_cari_adi.Text.Trim());
sqlcom.Parameters.AddWithValue("@irtibat", Text_irtibat.Text.Trim());
sqlcom.Parameters.AddWithValue("@adres", Text_adres.Text.Trim());
sqlcom.Parameters.AddWithValue("@paremetre", text_paremetre.Text.Trim());
sqlcom.Parameters.AddWithValue("@cari_kodu", Text_cari_kodu.Text.Trim());
sqlcom.ExecuteNonQuery();
connectionString.Close();
MessageBox.Show("Cari Başarıyla Düzenlendi!", "CARİ KARTI DÜZENLEME", MessageBoxButtons.OK, MessageBoxIcon.Information);
/*txt file =*/
update tbl_cariler
set cari_turu=@cari_turu , cari_adi = @cari_adi ,irtibat=@irtibat , adres = @adres, paremetre = @paremetre
where cari_kodu = @cari_kodu
gridview connect to ms sql with txt file query and get data to gridview with summary
string connectionString = null;
SqlConnection cnn;
connectionString = "Server = " + ondegerler.SQLBAGLANTISI_KAYNAK + "; Database = " + ondegerler.SQLBAGLANTISI_VERITABANI + "; User Id = " + ondegerler.SQLBAGLANTISI_KULLANICI + "; Password = " + ondegerler.SQLBAGLANTISI_PAROLA;
FileInfo file = new FileInfo(Application.StartupPath + "\\tbl_cariler.txt");
string script = file.OpenText().ReadToEnd();
cnn = new SqlConnection(connectionString);
SqlDataAdapter da = new SqlDataAdapter(script, cnn);
DataTable dt = new DataTable();
da.Fill(dt);
gridControl1.DataSource = dt;
gridView1.Columns[1].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Count;
gridView1.Columns[1].SummaryItem.DisplayFormat = "Adet = {0}";
gridView1.Columns["Bakiye"].SummaryItem.SummaryType = DevExpress.Data.SummaryItemType.Sum;
gridView1.Columns["Bakiye"].SummaryItem.DisplayFormat = "Toplam = {0}";
gridView1.BestFitColumns();
Devexpress grid databar
GridFormatRule gridFormatRule = new GridFormatRule();
FormatConditionRuleDataBar formatConditionRuleDataBar = new FormatConditionRuleDataBar();
gridFormatRule.Column = gridView1.Columns[“Bakiye”];
formatConditionRuleDataBar.PredefinedName = “Blue Gradient”;
gridFormatRule.Rule = formatConditionRuleDataBar;
this.gridView1.FormatRules.Add(gridFormatRule);
FormatConditionRuleDataBar formatConditionRuleDataBar = new FormatConditionRuleDataBar();
gridFormatRule.Column = gridView1.Columns[“Bakiye”];
formatConditionRuleDataBar.PredefinedName = “Blue Gradient”;
gridFormatRule.Rule = formatConditionRuleDataBar;
this.gridView1.FormatRules.Add(gridFormatRule);

