コード例 #1
0
ファイル: Options.cs プロジェクト: vantruc/skimpt
 private void button4_Click(object sender, EventArgs e)
 {
     classes.skContextHandler ch = new classes.skContextHandler();
     if (removeContext.Checked) {
         if (!ch.Add()) {
             MessageBox.Show("Unable to add to windows", "failed");
         }
     } else {
         if (!classes.skContextHandler.Remove()) {
             MessageBox.Show("Unable to remove context handler");
         } else {
             MessageBox.Show("context handler removed successfully!");
         }
     }
 }
コード例 #2
0
 private void button4_Click(object sender, EventArgs e)
 {
     classes.skContextHandler ch = new classes.skContextHandler();
     if (removeContext.Checked)
     {
         if (!ch.Add())
         {
             MessageBox.Show("Unable to add to windows", "failed");
         }
     }
     else
     {
         if (!classes.skContextHandler.Remove())
         {
             MessageBox.Show("Unable to remove context handler");
         }
         else
         {
             MessageBox.Show("context handler removed successfully!");
         }
     }
 }