public void ShowKeysByFilter(KeyFilter kf) { if (_keys != null) { _keys.Close(); } _keys = null; _keys = new KeysForm(this, kf); _keys.MdiParent = this; _keys.Show(); }
private void OnClickKeys(object sender, EventArgs e) { if ((_keys != null) && (_keys.Visible)) { _keys.Focus(); return; } if (_keys == null) { _keys = new KeysForm(this); _keys.MdiParent = this; } _keys.Show(); }
public void ShowKeysForCompany(int iIDCompany) { if (_keys != null) { _keys.Close(); } _keys = null; KeyFilter kfr = new KeyFilter(-1, iIDCompany, -1, -1, -1, -1); //1); kfr.FNameOfOwner = ""; // Empty string _keys = new KeysForm(this, kfr); _keys.MdiParent = this; _keys.Show(); }