示例#1
0
 private void StartForm()
 {
     try
     {
         if (this.InvokeRequired)
         {
             DisplayServerNodes utvd = new DisplayServerNodes(this.StartForm);
             this.Invoke(utvd, new object[] { });
         }
         else
         {
             Cursor.Current = Cursors.WaitCursor;
             foreach (string node in CACHE.SharedCache.Servers)
             {
                 this.LbxServerNodes.Items.Add(new Common.ComboBoxItem(node, -1));
             }
             Cursor.Current = Cursors.Default;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
示例#2
0
		private void StartForm()
		{
			try
			{
				if (this.InvokeRequired)
				{
					DisplayServerNodes utvd = new DisplayServerNodes(this.StartForm);
					this.Invoke(utvd, new object[] { });
				}
				else
				{
					Cursor.Current = Cursors.WaitCursor;
					foreach (string node in CACHE.SharedCache.Servers)
					{
						this.LbxServerNodes.Items.Add(new Common.ComboBoxItem(node, -1));
					}
					Cursor.Current = Cursors.Default;
				}
			}
			catch (Exception ex)
			{
				MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
			}		
		}