Пример #1
0
        private void CreateNewStyle()
        {
            frmNewStyle dlg = new frmNewStyle();

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                if (dlg.Format == StyleFileFormat.Var2_STL)
                {
                    frm2VariationEditor frmEditor = new frm2VariationEditor(dlg.StyleName, dlg.Tempo, dlg.Measure);
                    frmEditor.MdiParent = this;
                    frmEditor.Show();
                }
            }
        }
Пример #2
0
        private void OpenStyle()
        {
            OpenFileDialog dlg = new OpenFileDialog()
            {
                Filter = "Roland styles (*.stl, *.sth)|*.stl;*.sth"
            };

            if (dlg.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                Form frmEditor = new frm2VariationEditor(dlg.FileName);
                frmEditor.MdiParent = this;
                frmEditor.Show();
            }
        }