private void OpenFile(string path) { StaticValues.staticFilename = path; OpenXML open = new OpenXML(products, clients, this); open.Load(); }
//Open file private void OpenFile() { OpenFileDialog openDialog = new OpenFileDialog(); openDialog.Filter = "dls файл | *.dls"; if (openDialog.ShowDialog() == true) { StaticValues.staticFilename = openDialog.FileName; OpenXML open = new OpenXML(products, clients, this); open.Load(); } }