private static void Login()
        {
            try
            {
                //Thread.Sleep(3000);
                var message = (string)AppDomain.CurrentDomain.GetData("MyMessage");
                var op = (string)AppDomain.CurrentDomain.GetData("Operation");

                var da = new DataAccess();

                switch (op)
                {
                    case "I":
                        da.InsertBulkData(message);
                        break;
                    case "D":
                        da.DeleteBulkData(message);
                        break;
                    case "U":
                        da.UpdateBulkData(message);
                        break;
                    case "T":
                        break;
                }


                string[] args = {
                                AppDomain.CurrentDomain.FriendlyName, AppDomain.CurrentDomain.Id.ToString(),
                                Thread.CurrentThread.ManagedThreadId.ToString()
                            };

                string content = "This is my AppDomainFriendlyName : " + args[0] + ", my ID is : " + args[1] +
                                 " and my ThreadID is : " + args[2] + " and TimeStamp : " + DateTime.Now.ToString();

                // Create a new file.
                //const string fileName = "executeQueryResults.txt";
                //using (var w = new StreamWriter(fileName, true))
                //{
                //    w.WriteLine(content);
                //}
            }
            catch (Exception ex)
            {
                string err = ex.Message;
                // Handle exception here;
            }
        }
        private static void Login()
        {
            var message = (string)AppDomain.CurrentDomain.GetData("MyMessage");

            var da = new DataAccess();
            var ds = da.ExecuteQuery(message);

            string[] args = {
                                AppDomain.CurrentDomain.FriendlyName, AppDomain.CurrentDomain.Id.ToString(),
                                Thread.CurrentThread.ManagedThreadId.ToString(), ds.Tables[0].Rows.Count.ToString()
                            };

            string content = "This is my AppDomainFriendlyName : " + args[0] + ", my ID is : " + args[1] +
                             " and my ThreadID is : " + args[2] + " and Return DataRow Count : " + args[3] +
                             ", TimeStamp : " + DateTime.Now.ToString();

            // Create a new file.
            const string fileName = "executeQueryResults.txt";
            using (var w = new StreamWriter(fileName, true))
            {
                w.WriteLine(content);
            }
        }
        private void ExcuteTransaction(List<string> selectedQ)
        {
            try
            {
                var da = new DataAccess();
                da.ExcuteTransaction(selectedQ);
            }
            catch (Exception)
            {
                {}
                throw;
            }
 
        }