Esempio n. 1
0
        private async void _initStructureBtn_Click(Object sender, EventArgs e)
        {
            try
            {
                _statusLabel.Text = "Creating...";

                await _storage.CreateStructureAsync();

                _statusLabel.Text         = "Struture is OK";
                _saveCurrent.Visible      = true;
                _loadBtn.Visible          = true;
                _initStructureBtn.Visible = false;
                splitContainer1.Enabled   = true;
            }
            catch (Exception ex)
            {
                _statusLabel.Text = "Struture is not correct. It should be initialized";
                MessageBox.Show(ex.Message);
            }
        }