public TaskWindow()
        {
            InitializeComponent();

            this.ShowInTaskbar = false;

            Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");

            try
            {
                //Create tray icon
                System.Windows.Forms.NotifyIcon Icn = new System.Windows.Forms.NotifyIcon();

                string RootPath = System.AppDomain.CurrentDomain.BaseDirectory;
                //using (EventLog eventLog = new EventLog("Application"))
                //{
                //    eventLog.Source = "Application";
                //    eventLog.WriteEntry(RootPath, EventLogEntryType.Error);
                //}
                string IcnPath = RootPath + "/Icons/if_2_300981.ico";
                Icn.Icon        = new System.Drawing.Icon(IcnPath);
                Icn.Visible     = true;
                Icn.MouseClick += new System.Windows.Forms.MouseEventHandler(TrayIcon_Click);
                Icn.ShowBalloonTip(1000, "Mtu Remeinder", "Mtu Reminder is active and added icon to system tray", System.Windows.Forms.ToolTipIcon.Info);

                //Create trayicon context menu
                System.Windows.Forms.ContextMenu Cm = new System.Windows.Forms.ContextMenu();
                Cm.MenuItems.Add("New Task", new EventHandler(TrayIconContextMenu_NewTask_Click));
                Cm.MenuItems.Add("Exit", new EventHandler(TrayIconContextMenu_Exit_Click));

                //Paste context menu to tray icon
                Icn.ContextMenu = Cm;


                //Hide first form that app run in background
                WindowState = WindowState.Minimized;
                Hide();


                //Configuration that moust be
                StartupConfig.DateTimeConfiguration();
                StartupConfig.SetStartupApp();


                //Add DataBase Url To Setting File
                string StrPath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + @"\MtuReminder\db/";
                if (!Directory.Exists(StrPath))
                {
                    Directory.CreateDirectory(StrPath);
                }
                //string StrPath = Directory.GetCurrentDirectory();
                //string FullPath = StrPath + @"\db";
                string FullPath = StrPath + @"\DB.xml";
                Properties.Settings.Default["DbPath"] = FullPath;
                Properties.Settings.Default.Save();
                DbPath = FullPath;

                //Timer Configuration
                DispatcherTimer Timer = new DispatcherTimer();
                Timer.Tick    += TimerHandler;
                Timer.Interval = new TimeSpan(0, 0, 5);
                Timer.Start();
            }
            catch (Exception ee)
            {
                using (EventLog eventLog = new EventLog("Application"))
                {
                    eventLog.Source = "Application";
                    eventLog.WriteEntry(ee.Message, EventLogEntryType.Error);
                }
                MessageBox.Show("Error In Proram load :" + ee.Message);
            }
        }