public void DBClient()
 {
     DBClnt newWindow = new DBClnt();
     Autodesk.AutoCAD.ApplicationServices.Application.ShowModelessWindow(newWindow);
 }
 private void UsersMenu_Click(object sender, RoutedEventArgs e)
 {
     if (!Service.isDBCliensShown)
     {
         clntDB = new DBClnt();
         clntDB.Owner = this;
         clntDB.Show();
         Service.isDBCliensShown = true;
     }
     else
     {
         clntDB.Activate();
     }
 }