private void btnImport_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                Parameters.ImportandExportParamters _Parameters = new ControlPanel.Parameters.ImportandExportParamters();
                _Parameters.SetDisplayText("Import contacts from *.csv file");
                _Parameters.SetServerName(appConfig.GetValue("ServerName"));
                _Parameters.ShowDialog();

                string serverName = _Parameters.GetServerName();
                string File       = _Parameters.GetFilePath();

                if (!serverName.Equals(""))
                {
                    CommonLibrary.ActiveDirectory.Converts convert = new CommonLibrary.ActiveDirectory.Converts();
                    convert.CSV2LDIF(File, "Tools/tmp.ldf");

                    string toolsPath = Environment.CurrentDirectory + "/Tools";
                    System.Diagnostics.Process.Start(toolsPath + "/import.bat", " tmp.ldf " + serverName);

                    appConfig.SaveValue("ServerName", serverName);
                }
                _Parameters.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
                CommonLibrary.Utilities.Log.Create("Import Contacts" + ex.Message);
            }
        }
        private void btnExport_Click(object sender, RoutedEventArgs e)
        {
            Parameters.ImportandExportParamters _Parameters = new ControlPanel.Parameters.ImportandExportParamters();
            _Parameters.SetDisplayText("Export contacts to *.csv file");
            _Parameters.SetFilePath("C:/export.csv");
            _Parameters.ShowDialog();

            string serverName = _Parameters.GetServerName();
            string File       = _Parameters.GetFilePath();

            if (!serverName.Equals(""))
            {
                string toolsPath = Environment.CurrentDirectory + "/Tools";
                System.Diagnostics.Process.Start(toolsPath + "/export.bat", " " + File + " " + serverName);
            }

            _Parameters.Close();
        }