private void AccDel_Click(object sender, EventArgs e) { if (PIL.Items.Count == 0 || PIL.SelectedItems.Count == 0) { return; } LoginDeleteForm DF = new LoginDeleteForm(); DF.Owner = this; DF.Left = Left + Width; DF.Top = Top; DF.OpenMe(PIL.SelectedItems[0].Text); }
private void RemAcc_Click(object sender, EventArgs e) { if (LGS.Items.Count == 0 || LGS.SelectedItem.ToString().Length == 0) { return; } LoginDeleteForm DF = new LoginDeleteForm(); DF.Owner = this; DF.Left = Left + Width; DF.Top = Top; DF.OpenMe(LGS.SelectedItem.ToString()); }