コード例 #1
0
        async void LoadFile()
        {
            var path = _openFileService.OpenFile();

            if (path == null)
            {
                MessageBox.Show("filed to load the file", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
            else
            {
                if (path != string.Empty)
                {
                    dbPath = path;
                    await LoadDataGrid();
                }
            }
        }