private void SetPossibleHashConfig(bool simpleHashPossible) { if (this.InvokeRequired) { DelegateSetNotifyVersion inv = new DelegateSetNotifyVersion(this.SetNotifyVersion); this.Invoke(inv, new object[] {simpleHashPossible}); } else { List<COM.Enums.HashingAlgorithm> hashOptions = COM.EnumUtil<COM.Enums.HashingAlgorithm>.EnumToList<COM.Enums.HashingAlgorithm>(); foreach (var item in hashOptions) { if (item.ToString().Equals("Hashing")) { // do not add if (!simpleHashPossible) { checkedListBox1.Items.Add(new Common.ComboBoxItem(item.ToString(), -1), false); continue; } } checkedListBox1.Items.Add(new Common.ComboBoxItem(item.ToString(), -1), true); } this.checkedListBox1.Sorted = true; this.checkedListBox1.Enabled = false; } }
private void SetPossibleHashConfig(bool simpleHashPossible) { if (this.InvokeRequired) { DelegateSetNotifyVersion inv = new DelegateSetNotifyVersion(this.SetNotifyVersion); this.Invoke(inv, new object[] { simpleHashPossible }); } else { List <COM.Enums.HashingAlgorithm> hashOptions = COM.EnumUtil <COM.Enums.HashingAlgorithm> .EnumToList <COM.Enums.HashingAlgorithm>(); foreach (var item in hashOptions) { if (item.ToString().Equals("Hashing")) { // do not add if (!simpleHashPossible) { checkedListBox1.Items.Add(new Common.ComboBoxItem(item.ToString(), -1), false); continue; } } checkedListBox1.Items.Add(new Common.ComboBoxItem(item.ToString(), -1), true); } this.checkedListBox1.Sorted = true; this.checkedListBox1.Enabled = false; } }
/// <summary> /// Set Version Number of notfiere on frontend label. /// </summary> private void SetNotifyVersion() { if (this.InvokeRequired) { DelegateSetNotifyVersion inv = new DelegateSetNotifyVersion(this.SetNotifyVersion); this.Invoke(inv, new object[] { }); } else { this.LblVersion.Text = Environment.Version.ToString(); } }
/// <summary> /// Set Version Number of notfiere on frontend label. /// </summary> private void SetNotifyVersion() { if (this.InvokeRequired) { DelegateSetNotifyVersion inv = new DelegateSetNotifyVersion(this.SetNotifyVersion); this.Invoke(inv, new object[] { }); } else { this.LblVersion.Text = new AssemblyInfo().Version; } }