Exemplo n.º 1
0
        private void btnPrevious_Click(object sender, System.EventArgs e)
        {
            switch (current_page)
            {
            case Page.WELCOME:
                break;

            case Page.MODEL:
                CurPage = Page.WELCOME;
                btnPrevious.Focus();
                break;

            case Page.USB:
                CurPage = Page.MODEL;
                btnPrevious.Focus();
                break;

            case Page.SOUND_CARD:
                sound_card_index = comboBox3.SelectedIndex;
                CurPage          = Page.USB;
                btnPrevious.Focus();
                break;

            case Page.FINISHED:
                CurPage = Page.SOUND_CARD;
                btnPrevious.Focus();
                break;
            }
        }
Exemplo n.º 2
0
 private void Memory_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     this.ActiveControl = btnHidden;
     this.Hide();
     btnClose.Focus();
     //dataGrid1.CurrentRowIndex++;		// in order to save changes to current row
     // dataGrid1.CurrentRowIndex--;		// in order to save changes to current row
     e.Cancel = true;
 }