Hide properties from designer, it should not autogenerate any code for them

This commit is contained in:
Korney Czukowski 2017-12-14 19:42:08 +01:00
parent 60916e1080
commit 8297f4cd75

View File

@ -33,18 +33,21 @@ namespace DS4Windows.DS4Forms
set { label1.Text = value; } set { label1.Text = value; }
} }
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public int SelectedIndex public int SelectedIndex
{ {
get { return cbCulture.SelectedIndex; } get { return cbCulture.SelectedIndex; }
set { cbCulture.SelectedIndex = value; } set { cbCulture.SelectedIndex = value; }
} }
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public string SelectedText public string SelectedText
{ {
get { return cbCulture.SelectedText; } get { return cbCulture.SelectedText; }
set { cbCulture.SelectedText = value; } set { cbCulture.SelectedText = value; }
} }
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
public object SelectedValue public object SelectedValue
{ {
get { return cbCulture.SelectedValue; } get { return cbCulture.SelectedValue; }