public System.Windows.Forms.DialogResult ShowDialog(IWin32Window owner, List <Scale> chrds, frmFretBoard frm) { m_boardChords = chrds; m_fretBoard = frm; return(this.ShowDialog(owner)); }
private void frmMain_Load(object sender, EventArgs e) { this.LoadScalesAndChords(); //this.InitListBoxes(); m_scaleEditor = new frmScaleEditor(this.m_scales); m_chordEditor = new frmChordEditor(this.m_chords); var ff = new frmFretBoard(m_scaleEditor, m_chordEditor); ff.MdiParent = this; ff.Visible = true; }
public System.Windows.Forms.DialogResult ShowDialog(System.Windows.Forms.IWin32Window owner, List <Scale> sc, frmFretBoard frm) { m_boardScales = sc; m_fretBoard = frm; lstBoardScales.Items.Clear(); foreach (Scale s in m_boardScales) { lstBoardScales.Items.Add(s); } return(this.ShowDialog(owner)); }