private void picboxAddOwner_Click(object sender, EventArgs e) { FormInputOwnerTranslateItem inputTranslateItem = new FormInputOwnerTranslateItem(InputOwnerTranslateMode.Add, this, null); inputTranslateItem.ShowDialog(); }
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; }