C#


20
Oct 10

My first blog post series, are you interested in it?

I was thinking to write blog post series about process of developing WPF applications.

The series would be about WPF and:

  1. Main architecture of Client/Server application (the big picture)
  2. Using Entity Framework with SQL Server, SQLite (or SQL CE)  and WPF (+Advanced topic on Error handling on Model level)
  3. Authentication and Authorization
  4. Navigation through Forms in WPF app. Continue reading →

20
Oct 10

Sneak peek at ISOR login screen

ISOR is our latest WPF application, outsourced for Government of Bosnia and Herzegovina (Federal Ministry of Development, Entrepreneurship and Crafts). Case study will be published in next posts, but for now, how do you like our Login Screen :) ?


15
Feb 10

ExportData Table to Excel using C#

Here is little class that I wrote some time ago that helps you export data from DataTable into Excell xls file. It format fields in xls file based on data type from data table.

It’s not a perfect but it will help you to quickly save data from Data Table to Excel file.

Example of usage:

Common.Data.Export2Excel(dataTableWithData, "exported.xls");

Continue reading →


31
Dec 09

Escape string in C#

I have searched more than 30 min. for string escape method in C#, and finally here it is.

You can find it deep inside Security namspace

string safeString = System.Security.SecurityElement.Escape("St'ring to escpa");

You can use it to sanitize values before saving to database.


25
Dec 09

Reset all controls on form (Windows forms – C#)

Well i had a situation where i need to reset all controls (mostly Textboxes and Comboboxes) on form to their default (entry ready) state. Well, at first sight I was thinking it’s not a problem, my .net Win form have property called Controls – list of all controls on form. But problem was that i had overlapping panels which i used for positioning, and inside of panels was Group box control. So it’s allready complicated then at first sight.

I have created little Form helper which will help you reset all controls on form to their default state.
Continue reading →