Exemplo n.º 1
0
 private void lvList_DoubleClick(object sender, EventArgs e)
 {
     if (lvList.SelectedItems.Count > 0)
     {
         string code             = lvList.SelectedItems[0].Text;
         string languageCode     = ((ComboboxItem)cbLanguage.SelectedItem).Code;
         frmTranslateMessage frm = new frmTranslateMessage(languageCode, code);
         frm.ShowDialog();
         refreshList();
     }
 }
Exemplo n.º 2
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string languageCode = string.Empty;

            if (!string.IsNullOrEmpty(cbLanguage.Text))
            {
                languageCode = ((ComboboxItem)cbLanguage.SelectedItem).Code;
            }
            frmTranslateMessage frm = new frmTranslateMessage(languageCode);

            frm.ShowDialog();
            refreshList();
        }