private void _addServerButton_Click(object sender, EventArgs e) { ServerDetailForm serverDetailForm = FormFactory.CreateForm <ServerDetailForm>(ParentForm); serverDetailForm.ShowDialog(); RefreshServers(); }
private void _grid_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { Guid serverId = (Guid)_grid.Rows[e.RowIndex].Tag; ServerDetailForm serverDetailForm = FormFactory.CreateForm <ServerDetailForm>(ParentForm); serverDetailForm.ServerId = serverId; serverDetailForm.ShowDialog(); RefreshServers(); }