private ExplorerView CreateExplorer(string path = SettingsHandler.ROOT_FOLDER) { var h = new LocalHandler(path); h.OnError += HandlerOnOnError; h.OnSetCurrentPath += HOnOnSetCurrentPath; var x = new ExplorerView(); x.Init(h); x.SendDirectoryUpdateAsCmd += XOnSendDirectoryUpdateAsCmd; x.UpdateStatusBar += XOnUpdateStatusBar; x.UpdatePathBarDirect += XOnUpdatePathBarDirect; x.Margin = new Thickness(0, 0, 0, 0); return(x); }