示例#1
0
        private void picboxAddOwner_Click(object sender, EventArgs e)
        {
            FormInputOwnerTranslateItem inputTranslateItem =
                new FormInputOwnerTranslateItem(InputOwnerTranslateMode.Add, this, null);

            inputTranslateItem.ShowDialog();
        }
示例#2
0
        private void EditOwnerTranslate()
        {
            if (listViewOwnerTranslate.SelectedItems.Count <= 0)
            {
                return;
            }

            string     key = listViewOwnerTranslate.SelectedItems[0].SubItems[0].Text;
            OwnerEntry own = OwnerTranslate.Get(key);

            m_selectedOwner = own;

            FormInputOwnerTranslateItem formInputTranslate =
                new FormInputOwnerTranslateItem(InputOwnerTranslateMode.Edit, this, own);

            formInputTranslate.ShowDialog();
            m_selectedOwner = null;
        }