Korrigiert

- Zugriffsmodifizierer geändert
- Aufruf für die Dialoghöhe geändert
This commit is contained in:
Eugen Höglinger 2023-10-03 15:03:10 +02:00
parent aee9eb28b1
commit c0dc89da56
24 changed files with 12 additions and 48 deletions

View File

@ -133,7 +133,7 @@ namespace HE_Test_Dll
tripleValueControl.TableAttributeName = "MyAttribut";
//tripleValueControl.AlwaysEncrypted = true; //Alle Werte werden immer Verschlüsselt
tripleValueControl.SetDialogWidth(600); //Der Dialog kann zwischen 316 und 800 breit sein
tripleValueControl.DialogHeight = 300; //Der Dialog kann zwischen 227 und 600 hoch sein
tripleValueControl.SetDialogHeight(300); //Der Dialog kann zwischen 227 und 600 hoch sein
tripleValueControl.SetBasicValues(); //Die übergebenen Werte anzeigen
}
}

Binary file not shown.

Binary file not shown.

View File

@ -228,16 +228,6 @@ namespace Eugen.ESystem.Windows.Forms
set { dataGridViewValues.Columns[2].HeaderText = value; }
}
/// <summary>
/// Adjusts the width of the control. An empty value forces the default value
/// </summary>
public int DialogWidth { set; get; }
/// <summary>
/// Adjusts the height of the control. An empty value forces the default value
/// </summary>
public int DialogHeight { set; get; }
/// <summary>
/// Adjusts the width of the name column of the table. An empty value forces the default value
/// </summary>
@ -252,6 +242,16 @@ namespace Eugen.ESystem.Windows.Forms
private int rowIndexColored = 0;
private bool onlyRefresh = false;
private int StandardValue { get; set; }
/// <summary>
/// Adjusts the width of the control. An empty value forces the default value
/// </summary>
private int DialogWidth { set; get; }
/// <summary>
/// Adjusts the height of the control. An empty value forces the default value
/// </summary>
private int DialogHeight { set; get; }
#endregion
private void InitializeUserControl()
@ -435,42 +435,6 @@ namespace Eugen.ESystem.Windows.Forms
private void LoadXML()
{
//controlPanelControl.CheckBoxEncryptStatusSelected = false;
//var loadXML = new LoadXML();
//loadXML.FileName = XMLfileName;
//loadXML.Load();
//string[] values = new string[loadXML.Values.Length];
//values = loadXML.Values;
//string[] attributes = new string[loadXML.Attributes.Length];
//attributes = loadXML.Attributes;
//if (!String.IsNullOrEmpty(Group))
//{
// loadXML.Group = Group;
//}
//for (int i = 0; i < values.Length; i++)
//{
// if (values[i].StartsWith("$$$$"))
// {
// values[i] = Decrypt(values[i], Password);
// controlPanelControl.CheckBoxEncryptStatusSelected = true; //Wenn ein verschlüsseltes Element gefunden wurde, dann setzen
// }
// if (attributes[i].StartsWith("$$$$"))
// {
// attributes[i] = Decrypt(attributes[i], Password);
// controlPanelControl.CheckBoxEncryptStatusSelected = true; //Wenn ein verschlüsseltes Element gefunden wurde, dann setzen
// }
// dataGridViewValues.Rows.Add(loadXML.Keys[i], values[i], attributes[i]);
//}
//dataGridViewValues.Refresh();
//textBoxGroup.Text = loadXML.Group; //Gruppe setzen
controlPanelControl.CheckBoxEncryptStatusSelected = false;
var loadXML = new LoadXML();
@ -594,7 +558,7 @@ namespace Eugen.ESystem.Windows.Forms
}
}
private void SetDialogHeight(int height)
public void SetDialogHeight(int height)
{
if (height >= this.MinimumSize.Height && height <= this.MaximumSize.Height)
{