Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
rmcrackan committed May 13, 2024
1 parent b2a882b commit 5cd329d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions Source/LibationWinForms/AccessibleDataGridViewButtonCell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ public AccessibleDataGridViewButtonCell(string accessibilityName) : base()

protected class ButtonCellAccessibilityObject : DataGridViewButtonCellAccessibleObject
{
public string AccessibilityName { get; set; }
public string AccessibilityDescription { get; set; }
private string _name;
public override string Name => _name;

public override string Name => AccessibilityName;
public override string Description => AccessibilityDescription;
private string _description;
public override string Description => _description;

public ButtonCellAccessibilityObject(DataGridViewCell owner, string name, string description) : base(owner)
{
AccessibilityName = name;
AccessibilityDescription = description;
_name = name;
_description = description;
}
}
}
Expand Down
12 changes: 6 additions & 6 deletions Source/LibationWinForms/AccessibleDataGridViewTextBoxCell.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ public AccessibleDataGridViewTextBoxCell(string accessibilityName) : base()

protected class TextBoxCellAccessibilityObject : DataGridViewTextBoxCellAccessibleObject
{
public string AccessibilityName { get; set; }
public string AccessibilityDescription { get; set; }
private string _name;
public override string Name => _name;

public override string Name => AccessibilityName;
public override string Description => AccessibilityDescription;
private string _description;
public override string Description => _description;

public TextBoxCellAccessibilityObject(DataGridViewCell owner, string name, string description) : base(owner)
{
AccessibilityName = name;
AccessibilityDescription = description;
_name = name;
_description = description;
}
}
}
Expand Down

0 comments on commit 5cd329d

Please sign in to comment.