コード例 #1
0
        private void cmdRenderAlphaTab_Click(object sender, EventArgs e)
        {
            byte[] array = Encoding.ASCII.GetBytes(this.txtAlphaMarkup.Text);

            //Create a new tab view form and pass the AlphaText to the control
            TabForm TabForm = new TabForm();
            TabForm.InternalOpenFile(array);
            TabForm.Show();
        }
コード例 #2
0
        /*
         * Arrangement Code Section
         * 
         * 
         */

        public void Select_Arrangement()
        {
            //Return selected arrangement from Data Grid
            try
            {

                int SelectArrangement = Convert.ToInt32(this.dGridArrangements.SelectedRows[0].Cells[0].Value);

                txtSelectedArrangement.Text = SelectArrangement.ToString();

                Arrangement temp_arr = Arrangemenets.get_Arrangement(SelectArrangement);

                txtArrange.Text = temp_arr.ToString();
                //Write the Alpha Text to the Form for reference
                txtAlphaMarkup.Text = AlphaTabController.Build_AlphaText(temp_arr);
                //txtAlphaMarkup.Text = AlphaTabController.Example_Text;
                byte[] array = Encoding.ASCII.GetBytes(AlphaTabController.Build_AlphaText(temp_arr));
                //call method to render the Tab Creation

                //Create a new tab view form and pass the AlphaText to the control
                TabForm TabForm = new TabForm();
                TabForm.InternalOpenFile(array);
                TabForm.Show();

                //TODO - Set the Other Data Grid to the NoteNode values for the select arrangemenet
                int test;

                dGridArrCost.DataSource = temp_arr.get_arrange_notes_sortable();


            }
            catch
            {

                //Error if no line is selected
                //MessageBox.Show("You need to select a line");
            }

        }