예제 #1
0
 private void CheckIfDefault()
 {
     if (!BrowserRegistrationManager.IsAppSetAsDefault)
     {
         if (MessageBox.Show("Browser Selector is not currently your default browser, would you like to set it as default?",
                             Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             BrowserRegistrationManager.RegisterOrUnregisterAsAdmin(true);
             BrowserRegistrationManager.SetAsDefault();
         }
     }
 }
예제 #2
0
 private void CheckIfDefault()
 {
     if (!BrowserRegistrationManager.IsAppSetAsDefault)
     {
         if (MessageBox.Show("BrowserSelector가 기본 웹 브라우저로 설정되어 있지 않습니다.\n기본 앱에서 기본 웹 브라우저로 설정하시겠습니까?",
                             Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             BrowserRegistrationManager.RegisterOrUnregisterAsAdmin(true);
             BrowserRegistrationManager.SetAsDefault();
         }
     }
 }
예제 #3
0
 private void btnDefault_Click(object sender, EventArgs e)
 {
     BrowserRegistrationManager.SetAsDefault();
 }