public void AddPartition()
 {
     // display the add dialog
     AddEditPartitionDialog.Partition = null;
     AddEditPartitionDialog.EditMode  = false;
     AddEditPartitionDialog.Show(true);
 }
 public void EditPartition(ServerPartition selectedPartition)
 {
     AddEditPartitionDialog.Partition = selectedPartition;
     AddEditPartitionDialog.EditMode  = true;
     AddEditPartitionDialog.Show(true);
 }