public override bool Equals(object other) { // Check if null if (null == other) { return(false); } // Check if it's the right type if (!(other is MainSettings otherProperties)) { return(false); } // Check all properties if (LogFontSize != otherProperties.LogFontSize) { return(false); } if (TreeViewFontSize != otherProperties.TreeViewFontSize) { return(false); } if (RetryCount != otherProperties.RetryCount) { return(false); } if (RetryTimeout != otherProperties.RetryTimeout) { return(false); } if (ReceiveTimeout != otherProperties.ReceiveTimeout) { return(false); } if (ServerTimeout != otherProperties.ServerTimeout) { return(false); } if (PrefetchCount != otherProperties.PrefetchCount) { return(false); } if (TopCount != otherProperties.TopCount) { return(false); } if (SenderThinkTime != otherProperties.SenderThinkTime) { return(false); } if (ReceiverThinkTime != otherProperties.ReceiverThinkTime) { return(false); } if (MonitorRefreshInterval != otherProperties.MonitorRefreshInterval) { return(false); } if (ShowMessageCount != otherProperties.ShowMessageCount) { return(false); } if (UseAscii != otherProperties.UseAscii) { return(false); } if (SaveMessageToFile != otherProperties.SaveMessageToFile) { return(false); } if (SavePropertiesToFile != otherProperties.SavePropertiesToFile) { return(false); } if (SaveCheckpointsToFile != otherProperties.SaveCheckpointsToFile) { return(false); } if (Label != otherProperties.Label) { return(false); } if (MessageFile != otherProperties.MessageFile) { return(false); } if (MessageText != otherProperties.MessageText) { return(false); } if (MessageContentType != otherProperties.MessageContentType) { return(false); } if (!SelectedEntities.SequenceEqual(SelectedEntities)) { return(false); } if (!SelectedMessageCounts.SequenceEqual(SelectedMessageCounts)) { return(false); } if (MessageBodyType != otherProperties.MessageBodyType) { return(false); } if (ConnectivityMode != otherProperties.ConnectivityMode) { return(false); } if (UseAmqpWebSockets != otherProperties.UseAmqpWebSockets) { return(false); } if (ProxyOverrideDefault != otherProperties.ProxyOverrideDefault) { return(false); } if (ProxyUseDefaultCredentials != otherProperties.ProxyUseDefaultCredentials) { return(false); } if (ProxyBypassOnLocal != otherProperties.ProxyBypassOnLocal) { return(false); } if (ProxyAddress != otherProperties.ProxyAddress) { return(false); } if (ProxyBypassList != otherProperties.ProxyBypassList) { return(false); } if (ProxyUserName != otherProperties.ProxyUserName) { return(false); } if (ProxyPassword != otherProperties.ProxyPassword) { return(false); } if (NodesColors.SequenceEqual(otherProperties.NodesColors)) { return(false); } return(true); }
public override bool Equals(object other) { // Check if null if (null == other) { return(false); } // Check if it's the right type if (!(other is MainSettings otherProperties)) { return(false); } // Check all properties if (LogFontSize != otherProperties.LogFontSize) { return(false); } if (TreeViewFontSize != otherProperties.TreeViewFontSize) { return(false); } if (RetryCount != otherProperties.RetryCount) { return(false); } if (RetryTimeout != otherProperties.RetryTimeout) { return(false); } if (ReceiveTimeout != otherProperties.ReceiveTimeout) { return(false); } if (ServerTimeout != otherProperties.ServerTimeout) { return(false); } if (PrefetchCount != otherProperties.PrefetchCount) { return(false); } if (TopCount != otherProperties.TopCount) { return(false); } if (SenderThinkTime != otherProperties.SenderThinkTime) { return(false); } if (ReceiverThinkTime != otherProperties.ReceiverThinkTime) { return(false); } if (MonitorRefreshInterval != otherProperties.MonitorRefreshInterval) { return(false); } if (ShowMessageCount != otherProperties.ShowMessageCount) { return(false); } if (UseAscii != otherProperties.UseAscii) { return(false); } if (SaveMessageToFile != otherProperties.SaveMessageToFile) { return(false); } if (SavePropertiesToFile != otherProperties.SavePropertiesToFile) { return(false); } if (SaveCheckpointsToFile != otherProperties.SaveCheckpointsToFile) { return(false); } if (Label != otherProperties.Label) { return(false); } if (MessageFile != otherProperties.MessageFile) { return(false); } if (MessageText != otherProperties.MessageText) { return(false); } if (!SelectedEntities.SequenceEqual(SelectedEntities)) { return(false); } if (MessageBodyType != otherProperties.MessageBodyType) { return(false); } if (ConnectivityMode != otherProperties.ConnectivityMode) { return(false); } return(true); }