Exemplo n.º 1
0
 private void ButtonEditItem_Click(object sender, EventArgs e)
 {
     using (EditItemForm f3 = new EditItemForm())
     {
         f3.ShowDialog(this);
         loadtext();
     }
 }
Exemplo n.º 2
0
 private void ButtonEditItem_Click_1(object sender, EventArgs e)
 {
     try //try to open editform
     {
         using (EditItemForm EditItem = new EditItemForm())
         {
             EditItem.ShowDialog(this);
         }
     }
     catch (Exception) //show error if nothing was selected
     {
         MessageBox.Show("Valittua salasanaa ei voida avata.");
     }
 }