public void OpenStorage(string arg, bool online) { Cleanup(); using (var initForm = new InitForm()) { if (online) { initForm.LoadOnlineStorage(arg); } else { initForm.LoadLocalStorage(arg); } DialogResult res = initForm.ShowDialog(); if (res != DialogResult.OK) { return; } _casc = initForm.CASC; _root = initForm.Root; } Sorter.CASC = _casc; OnStorageChanged?.Invoke(); }
public void OpenStorage(bool online, string path, string product) { Cleanup(); using (var initForm = new InitForm()) { initForm.LoadStorage((online, path, product)); DialogResult res = initForm.ShowDialog(); if (res != DialogResult.OK) { return; } _casc = initForm.CASC; _root = initForm.Root; } Sorter.CASC = _casc; OnStorageChanged?.Invoke(); }
public void OpenStorage(string arg, bool online) { Cleanup(); using (var initForm = new InitForm()) { if (online) initForm.LoadOnlineStorage(arg); else initForm.LoadLocalStorage(arg); DialogResult res = initForm.ShowDialog(); if (res != DialogResult.OK) return; _casc = initForm.CASC; _root = initForm.Root; } Sorter.CASC = _casc; OnStorageChanged?.Invoke(); }