Пример #1
0
		internal object DoWork(){
			//	Invoke the worker method and return any results.
			WaitWindowEventArgs e = new WaitWindowEventArgs(this._Parent, this._Parent._Args);
			if ((this._Parent._WorkerMethod != null)){
				this._Parent._WorkerMethod(this, e);
			}
			return e.Result;
		}
Пример #2
0
 private void CollectorMethod(object sender, WaitWindowEventArgs e)
 {
     //создаем список команд
     List<string> commands = new List<string>();
     foreach (var item in checkedListBoxCommand.CheckedItems)
     {
         string command = item.ToString();
         commands.Add(command);
     }
     //передаем наш список для сбора конфигурации
     e.Result=Connection(commands);
 }