private void doneBtn_Click(object sender, EventArgs e)
        {
            PixDBInterface pixDb = new PixDBInterface();

            String networkShare = null;

            if (networkShareView.CheckedItems.Count > 0)
            {
                ListViewItem item = networkShareView.CheckedItems[0];
                networkShare = item.Text;
            }
            else if (specifyLocBox.Text.Length > 0)
                networkShare = specifyLocBox.Text;

            if (!String.IsNullOrEmpty(networkShare))
            {
                pixDb.UpdateConfigValue("ServerName", networkShare);
                SelectShareLocation.m_LocationSet = true;

                SelectShareLocation loc = new SelectShareLocation();
                loc.Show();
                this.Hide();
            }
        }
        private void nextStepBtn_Click(object sender, EventArgs e)
        {
            if (dirsListView.Items.Count > 0)
            {
                PixDBInterface pixDb = new PixDBInterface();
                pixDb.RemoveAllDirsToWatch();
                foreach (ListViewItem item in dirsListView.Items)
                {
                    string dirToWatch = item.Text;
                    if (dirToWatch.CompareTo("Desktop") == 0)
                        dirToWatch = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
                    else if (dirToWatch.CompareTo("My Pictures") == 0)
                        dirToWatch = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);

                    pixDb.AddDirToWatch(dirToWatch, 0);
                }
                m_shouldShutdown = false;
                this.Hide();
                SelectShareLocation shareLoc = new SelectShareLocation();
                shareLoc.Show();
            }
        }
 private void Form1_FormClosed(Object sender, FormClosedEventArgs e)
 {
     SelectShareLocation loc = new SelectShareLocation();
     loc.Show();
     this.Hide();
 }