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;
			}
			
		}
Beispiel #2
0
        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;
            }
        }
Beispiel #3
0
 /// <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;
     }
 }
		/// <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;
			}
		}
		/// <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();
			}
		}