Exemplo n.º 1
0
        private void ViewThenRemoveBTN_Click(object sender, EventArgs e)
        {
            try
            {
                RemoveAppCB.Text             = GridSearchResults.SelectedRows[0].Cells[1].Value.ToString();
                GridSearchResults.DataSource = null;
                DeveloperTabs.SelectTab(ManageAppTab);
                ManageAppSubTabs.SelectTab(RemoveTab);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            /*
             * developer = new Developer();
             * try
             * {
             *  if (developer.RemoveApp())
             *  {
             *      MessageBox.Show("App removed Successfully!");
             *      updateCount();
             *      fillsearchGrid();
             *      fillCBs();
             *  }
             * }
             * catch (Exception ex)
             * {
             *  MessageBox.Show(ex.Message);
             * }*/
        }
Exemplo n.º 2
0
 private void ViewThenUpdateBTN_Click(object sender, EventArgs e)
 {
     try
     {
         UpdateAppCB.Text             = GridSearchResults.SelectedRows[0].Cells[1].Value.ToString();
         GridSearchResults.DataSource = null;
         DeveloperTabs.SelectTab(ManageAppTab);
         ManageAppSubTabs.SelectTab(UpdateAppTab);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }