Bei der Bluelight anlage paar buttons deaktiviert
This commit is contained in:
@@ -14,6 +14,7 @@ namespace SanSystem.Einstellungen
|
|||||||
public int GetWidth(DataGridViewColumn dataGridViewColumn)
|
public int GetWidth(DataGridViewColumn dataGridViewColumn)
|
||||||
{
|
{
|
||||||
int result = -1;
|
int result = -1;
|
||||||
|
if (dataGridViewColumn == null) return -1;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -28,6 +29,7 @@ namespace SanSystem.Einstellungen
|
|||||||
}
|
}
|
||||||
public void SetWidth(DataGridViewColumn dataGridViewColumn)
|
public void SetWidth(DataGridViewColumn dataGridViewColumn)
|
||||||
{
|
{
|
||||||
|
if (dataGridViewColumn == null) return;
|
||||||
setConfig(dataGridViewColumn.HeaderText, dataGridViewColumn.Width);
|
setConfig(dataGridViewColumn.HeaderText, dataGridViewColumn.Width);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -76,12 +76,18 @@ namespace SanSystem
|
|||||||
public frmObjekteList(string streetname)
|
public frmObjekteList(string streetname)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
DataGridViewCheckBoxColumn checkBoxColumn = new DataGridViewCheckBoxColumn();
|
btn_set_kali.Enabled = false;
|
||||||
checkBoxColumn.Name = "Auswahl";
|
if (Global.Instance.AnlageType == CSVParser.AcceptedCSVFormats.UVRELINING)
|
||||||
checkBoxColumn.HeaderText = "Auswahl";
|
{
|
||||||
//checkBoxColumn.Width = objecteListSetting.configuration["Auswahl"];
|
DataGridViewCheckBoxColumn checkBoxColumn = new DataGridViewCheckBoxColumn();
|
||||||
|
checkBoxColumn.Name = "Auswahl";
|
||||||
|
checkBoxColumn.HeaderText = "Auswahl";
|
||||||
|
//checkBoxColumn.Width = objecteListSetting.configuration["Auswahl"];
|
||||||
|
|
||||||
dGObjekte.Columns.Add(checkBoxColumn);
|
btn_set_kali.Enabled = true;
|
||||||
|
|
||||||
|
dGObjekte.Columns.Add(checkBoxColumn);
|
||||||
|
}
|
||||||
lbl_ort.Text = Global.Instance.language.Labels["ort"];
|
lbl_ort.Text = Global.Instance.language.Labels["ort"];
|
||||||
lbl_projekt.Text = Global.Instance.language.Labels["projekt"];
|
lbl_projekt.Text = Global.Instance.language.Labels["projekt"];
|
||||||
lbl_street.Text = Global.Instance.language.Labels["street"];
|
lbl_street.Text = Global.Instance.language.Labels["street"];
|
||||||
@@ -218,7 +224,8 @@ namespace SanSystem
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
dGObjekte.Columns["Auswahl"].Width = objecteListSetting.GetWidth(dGObjekte.Columns["Auswahl"]); // objecteListSetting.configuration["Auswahl"];
|
if(Global.Instance.AnlageType == CSVParser.AcceptedCSVFormats.UVRELINING)
|
||||||
|
dGObjekte.Columns["Auswahl"].Width = objecteListSetting.GetWidth(dGObjekte.Columns["Auswahl"]); // objecteListSetting.configuration["Auswahl"];
|
||||||
dGObjekte.Columns["Hausnummer"].Width = objecteListSetting.GetWidth(dGObjekte.Columns["Hausnummer"]);//objecteListSetting.configuration["Hausnummer"];
|
dGObjekte.Columns["Hausnummer"].Width = objecteListSetting.GetWidth(dGObjekte.Columns["Hausnummer"]);//objecteListSetting.configuration["Hausnummer"];
|
||||||
dGObjekte.Columns["VonPunkt"].Width = objecteListSetting.GetWidth(dGObjekte.Columns["VonPunkt"]);//objecteListSetting.configuration["VonPunkt"];
|
dGObjekte.Columns["VonPunkt"].Width = objecteListSetting.GetWidth(dGObjekte.Columns["VonPunkt"]);//objecteListSetting.configuration["VonPunkt"];
|
||||||
dGObjekte.Columns["BisPunkt"].Width = objecteListSetting.GetWidth(dGObjekte.Columns["BisPunkt"]);// objecteListSetting.configuration["BisPunkt"];
|
dGObjekte.Columns["BisPunkt"].Width = objecteListSetting.GetWidth(dGObjekte.Columns["BisPunkt"]);// objecteListSetting.configuration["BisPunkt"];
|
||||||
|
|||||||
Reference in New Issue
Block a user