Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8138


Ignore:
Timestamp:
06/27/12 17:24:49 (12 years ago)
Author:
ascheibe
Message:

#1174 fixed compiler warnings

Location:
trunk/sources/HeuristicLab.Clients.OKB.Views/3.3/Query/Views
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/EqualityComparisonBoolFilterView.cs

    r8055 r8138  
    5252    private void valueComboBox_SelectedIndexChanged(object sender, System.EventArgs e) {
    5353      if (Content != null) {
    54         Content.Value = valueComboBox.SelectedItem == "true" ? true : false;
     54        Content.Value = valueComboBox.SelectedItem.ToString() == "true";
    5555      }
    5656    }
  • trunk/sources/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/EqualityComparisonFilterView.cs

    r8055 r8138  
    5454    private void comparisonComboBox_SelectedIndexChanged(object sender, System.EventArgs e) {
    5555      if (Content != null) {
    56         if (comparisonComboBox.SelectedItem == "=")
     56        if (comparisonComboBox.SelectedItem.ToString() == "=")
    5757          Content.Comparison = EqualityComparison.Equal;
    58         else if (comparisonComboBox.SelectedItem == "<>")
     58        else if (comparisonComboBox.SelectedItem.ToString() == "<>")
    5959          Content.Comparison = EqualityComparison.NotEqual;
    6060      }
  • trunk/sources/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/OrdinalComparisonFilterView.cs

    r8055 r8138  
    6363    private void comparisonComboBox_SelectedIndexChanged(object sender, System.EventArgs e) {
    6464      if (Content != null) {
    65         if (comparisonComboBox.SelectedItem == "<")
     65        if (comparisonComboBox.SelectedItem.ToString() == "<")
    6666          Content.Comparison = OrdinalComparison.Less;
    67         else if (comparisonComboBox.SelectedItem == "<=")
     67        else if (comparisonComboBox.SelectedItem.ToString() == "<=")
    6868          Content.Comparison = OrdinalComparison.LessOrEqual;
    69         else if (comparisonComboBox.SelectedItem == "=")
     69        else if (comparisonComboBox.SelectedItem.ToString() == "=")
    7070          Content.Comparison = OrdinalComparison.Equal;
    71         else if (comparisonComboBox.SelectedItem == ">=")
     71        else if (comparisonComboBox.SelectedItem.ToString() == ">=")
    7272          Content.Comparison = OrdinalComparison.GreaterOrEqual;
    73         else if (comparisonComboBox.SelectedItem == ">")
     73        else if (comparisonComboBox.SelectedItem.ToString() == ">")
    7474          Content.Comparison = OrdinalComparison.Greater;
    75         else if (comparisonComboBox.SelectedItem == "<>")
     75        else if (comparisonComboBox.SelectedItem.ToString() == "<>")
    7676          Content.Comparison = OrdinalComparison.NotEqual;
    7777      }
  • trunk/sources/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/StringComparisonAvailableValuesFilterView.cs

    r8055 r8138  
    6666    private void comparisonComboBox_SelectedIndexChanged(object sender, System.EventArgs e) {
    6767      if (Content != null) {
    68         if (comparisonComboBox.SelectedItem == "=")
     68        if (comparisonComboBox.SelectedItem.ToString() == "=")
    6969          Content.Comparison = StringComparison.Equal;
    70         else if (comparisonComboBox.SelectedItem == "<>")
     70        else if (comparisonComboBox.SelectedItem.ToString() == "<>")
    7171          Content.Comparison = StringComparison.NotEqual;
    72         else if (comparisonComboBox.SelectedItem == "contains")
     72        else if (comparisonComboBox.SelectedItem.ToString() == "contains")
    7373          Content.Comparison = StringComparison.Contains;
    74         else if (comparisonComboBox.SelectedItem == "not contains")
     74        else if (comparisonComboBox.SelectedItem.ToString() == "not contains")
    7575          Content.Comparison = StringComparison.NotContains;
    76         else if (comparisonComboBox.SelectedItem == "like")
     76        else if (comparisonComboBox.SelectedItem.ToString() == "like")
    7777          Content.Comparison = StringComparison.Like;
    78         else if (comparisonComboBox.SelectedItem == "not like")
     78        else if (comparisonComboBox.SelectedItem.ToString() == "not like")
    7979          Content.Comparison = StringComparison.NotLike;
    8080      }
  • trunk/sources/HeuristicLab.Clients.OKB.Views/3.3/Query/Views/StringComparisonFilterView.cs

    r8055 r8138  
    6666    private void comparisonComboBox_SelectedIndexChanged(object sender, System.EventArgs e) {
    6767      if (Content != null) {
    68         if (comparisonComboBox.SelectedItem == "=")
     68        if (comparisonComboBox.SelectedItem.ToString() == "=")
    6969          Content.Comparison = StringComparison.Equal;
    70         else if (comparisonComboBox.SelectedItem == "<>")
     70        else if (comparisonComboBox.SelectedItem.ToString() == "<>")
    7171          Content.Comparison = StringComparison.NotEqual;
    72         else if (comparisonComboBox.SelectedItem == "contains")
     72        else if (comparisonComboBox.SelectedItem.ToString() == "contains")
    7373          Content.Comparison = StringComparison.Contains;
    74         else if (comparisonComboBox.SelectedItem == "not contains")
     74        else if (comparisonComboBox.SelectedItem.ToString() == "not contains")
    7575          Content.Comparison = StringComparison.NotContains;
    76         else if (comparisonComboBox.SelectedItem == "like")
     76        else if (comparisonComboBox.SelectedItem.ToString() == "like")
    7777          Content.Comparison = StringComparison.Like;
    78         else if (comparisonComboBox.SelectedItem == "not like")
     78        else if (comparisonComboBox.SelectedItem.ToString() == "not like")
    7979          Content.Comparison = StringComparison.NotLike;
    8080      }
Note: See TracChangeset for help on using the changeset viewer.