예제 #1
0
        private async void _addScriptBtn_Click_1(Object sender, EventArgs e)
        {
            if (selectedCategory == 0)
            {
                return;
            }

            InputNameDialog inputNameDialog = new InputNameDialog();

            if (inputNameDialog.ShowDialog() == DialogResult.OK)
            {
                await _storage.AddScript(selectedCategory, inputNameDialog.InputName);

                var scripts = await _storage.GetScripts(selectedCategory);

                _scriptsList.DataSource = scripts;
            }
        }