예제 #1
0
        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;
        }
예제 #2
0
        public frmFretBoard(frmScaleEditor frmSE, frmChordEditor frmCE)
        {
            //this.Activated += frmFretBoard_Activated;
            //base.Load += Form3_Load;
            //this.ResizeEnd += frmFretBoard_ResizeEnd;

            // This call is required by the designer.
            InitializeComponent();

            // Add any initialization after the InitializeComponent() call.
            m_scaleEditor = frmSE;
            m_chordEditor = frmCE;

            m_img = System.Drawing.Image.FromFile(System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, @"Resources\wood_2.jpg"));
        }