Exemplo n.º 1
0
 private void 얀덱스ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // 번역 설정
     if (얀덱스ToolStripMenuItem.Checked)
     {
         얀덱스ToolStripMenuItem.Checked = false;
     }
     else
     {
         if (YandexKey == null)
         {
             if (MessageBox.Show(
                     "얀덱스API 를 사용하기위한 Key값이 없습니다. 설정하시겠습니까?\n" +
                     "설정값은 번역 Key 설정에서 바꾸실수 있습니다.", "알림", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                 == DialogResult.Yes)
             {
                 frmAPI ApiForm = new frmAPI(this);
                 ApiForm.Show();
                 if (YandexKey != null)
                 {
                     얀덱스ToolStripMenuItem.Checked = true;
                 }
             }
         }
     }
 }
Exemplo n.º 2
0
        private void 얀덱스ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            frmAPI ApiForm = new frmAPI(this);

            ApiForm.Show();
        }