Loader.Run C# (CSharp) Method

Run() public method

public Run ( LoaderFinished finished ) : void
finished LoaderFinished
return void
	public void Run (LoaderFinished finished)
	{
		AppDomain current = AppDomain.CurrentDomain;
		string baseDir = Path.GetDirectoryName (Assembly.GetCallingAssembly().Location);
		string commonDir = Path.Combine (baseDir, "Common");

		string [] files = Directory.GetFiles (Path.Combine (commonDir, "test-object"), "*.dll");

		foreach (string file in files) {
			string path = Path.GetDirectoryName (file);
			current.AppendPrivatePath (path);
		}
		
		if (finished != null)
			finished ();
	}
}

Usage Example

Esempio n. 1
0
 public void Run()
 {
     UpdateSensitivity();
     mainWindow.Hide();
     loader.Run();
     Application.Run();
 }
All Usage Examples Of Loader::Run
Loader