public void ChangeName(ReNameWindow rename) //action for ReNameWindow { try { Controller.ChangeColumnName(Email, Ordinal, Name); MessageBox.Show("Column name changed to " + Name); rename.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
public void ChangeName(int ordinal, Model.Column column) { if (IsHost) { if (column != null) { var col = new ReNameWindow(Controller, Email, ordinal, column.Name); col.ShowDialog(); ReLoad(); } else { MessageBox.Show("Please select column!"); } } else { MessageBox.Show("You are not the host of this board!"); } }