Posts

Showing posts from August, 2014

N-Tier Architecture

Image
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 {    publicclassEmployeeHelper    {       publicstaticvoid 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

ANDROID Frame Layout - ImageView Change Example

Image
<?xmlversion="1.0" encoding="utf-8"?> <FrameLayoutxmlns: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="#fff"       android:text="@string/ButtonMessage"/>
</FrameLayout>

packagecom.nkaya.test;
import …