public void SetLimit(int ordinal, Model.Column column) { if (IsHost) { if (column != null) { var col = new SetLimitWindow(Controller, Email, ordinal, column.Limit.ToString()); col.ShowDialog(); ReLoad(); } else { MessageBox.Show("Please select column!"); } } else { MessageBox.Show("You are not the host of this board!"); } }
public void setLimit(SetLimitWindow setLimit) //action for SetLimitWindow { try { Controller.SetLimit(Email, Ordinal, Limit); if (Limit.Equals("-1")) { MessageBox.Show("The limit of this column was disabled"); } else { MessageBox.Show("The limit of this column was set to " + Limit); } setLimit.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }