Exemplo n.º 1
0
        /**********************************************************************************/

        private void buttonAddApp_Click(object sender, EventArgs e)
        {
            string target_app = listBoxAllApps.SelectedItem as string;

            try
            {
                m_app_manager.AllowUsage(target_app, m_username);
            }
            catch (ArgumentException ex)
            {
                MessageBox.Show(ex.Message, "Not enougth RAM");
                return;
            }
            listBoxAllowedApps.Items.Add(target_app);
        }