private void b_delete_Click(object sender, EventArgs e)
 {
     space.Objects.Remove(obj);
     Changed?.Invoke();
     PropertiesWasChanged?.Invoke();
     Close();
 }
 private void Tb_name_LostFocus(object sender, EventArgs e)
 {
     if (space.Objects.Find(obj => obj.Name == tb_name.Text) == null)
     {
         provider.Name = tb_name.Text;
         PropertiesWasChanged?.Invoke();
     }
     else
     {
         tb_name.Text = provider.Name;
     }
 }