Skip to main content

Posts

Showing posts from August, 2014

N-Tier Architecture

Form User Interface: *************** using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WinFormAppN_TierArchitecture.BLL {    public class EmployeeHelper    {       public static void SaveErrorLog( Exception ex)       {          string fileName = Environment .CurrentDirectory + "\\ERROR_" + Guid .NewGuid() + ".txt" ;          File .WriteAllText(fileName, ex.ToString());       }    } } *************** using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WinFormAppN_TierArchitecture.BLL {    public static class EmployeeConverter    {       #region [ ToDecimal ]       public static Decimal ToDecimal( object value)       {          return ToDecimal(value, 0);       }

ANDROID Frame Layout - ImageView Change Example

<? xml version = "1.0" encoding = "utf-8" ?> < FrameLayout xmlns:android = "http://schemas.android.com/apk/res/android"    android:layout_width = "fill_parent"    android:layout_height = "fill_parent" >    < ImageView       android:id = "@+id/imageView1"       android:layout_width = "fill_parent"       android:layout_height = "fill_parent"       android:scaleType = "center"       android:src = "@drawable/android3d"       android:contentDescription = "@string/Message" />    < Button       android:id = "@+id/btnChangeImage"       android:layout_width = "wrap_content"       android:layout_height = "wrap_content"       android:layout_gravity = "center"       android:padding = "10dp"        android:background = "#000"       android:textColor = &qu